/* General Styles */
/** define variables */
:root {
    --max-width: 680px;    
    --background: #fff;
    --text-color: #000;
    --hight-light: #FFD600;
}

body {
    /* font-family: cursive; */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    margin: 0 auto;
    padding: 0;
    background-color: var(--background);
    color: var(--text-color);
    max-width: var(--max-width);
}

h1, h2, h3, h4, h5, h6 {   
    margin-bottom: 15px;
}
.medium{
    font-size: 0.8rem;
}

.top-menu {
    background-color: #f9f8ff;
    position: fixed;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
    top: 0;
    margin: 0;
    display: flex; 
    justify-content: 
    space-between; align-items: center;
    font-size: x-large;
    font-weight: bold;
}
.logo {
    margin-left: 10px;
    text-align: left;
}
.logo h1{
    
    margin: 0;
    color: #6945e2;
}
.logo .headline{    
    font-size: x-large;
    margin: 0;
}
.top-menu .submit-btn {
    margin-right: 10px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
}

.bold{
    font-weight: bold;
}



.container {
    margin: 60px 0 100px 0;
    padding: 10px;
     border-radius: 8px; 
     box-shadow: 0 2px 8px #ccc;
}

.center{
    text-align: center;
}
.mgl10{
    margin-left: 10px;
}
.mgt10{
    margin-top: 10px;
}
.mgt50{
    margin-top: 50px;
}

/** home */
.video-thumbnail {
    position: relative;
    display: inline-block;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    opacity: 0.7;
}
.thumbnail {
   width: 100%;
}


.post-info{
    display: flex;
}

.post-metadata{
    text-decoration: none;
    color: inherit;
    margin-left: 10px;
}

.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
}

.post-container{    
    background-color: #fdfdfd;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}
.post-container .post-title{
    margin:0;
}
.post-container .meta{
  color: #777;
}
.user-card{
    display: flex;
    text-decoration: none;
    color: inherit;
}


/** Menu  */
.menu-container{
    position: fixed;
    bottom: 0;
    background-color: var(--background);
    width: 100%;
    z-index: 1000;
    max-width: var(--max-width);
}
.menu {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 10px 0;
}
.menu-left, .menu-right {
    display: flex;
    align-items: center;
}
.menu a {
    color: var(--text-color);
    font-weight: bold ;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 16px;
}
.menu a:hover {
    color: var(--hight-light);
}
.menu a i {
    margin-right: 8px; /* Space between icon and text */
}

/* Navigation Menu */
nav {
    background-color: #007BFF;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background: #6945e2;
}

/* Buttons */
button, .btn {

    display: block;
    background: #7f5af0;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}
button:hover, .btn:hover {
    background: #6945e2;
}

.del-form{
    margin: 0;

}
.del-btn{
    width: auto;
    padding: 0;
    background: none;
    color: inherit;
}

button:disabled, .btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.comment{
    border: 1px solid #ddd; 
    padding: 10px; 
    margin-top: 10px;
}
.flex{
    display: flex;
    justify-content: space-between;
}

/* Form Styles */
form {
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;    
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

form input[type="submit"],
form button {
    display: inline-block;
    width: 100%;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Profile Container */
.profile-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-container img {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    border-radius: 50%;
    border: 3px solid #eee;
}

.profile-container h1 {
    text-align: center;
    margin-top: 20px;
    font-size: 28px;
    font-weight: 700;
}

.profile-container p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.follower-subscriber-counts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.follower-subscriber-counts p {
    font-size: 16px;
    color: #444;
}

/* Post List */
.btn-container{
    display:flex;
    align-items: center;
    justify-content: space-between;
    font-weight:bold;
}
.btn-container button{
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
}
.like, .disliked{
    width: inherit;
    background: none;
    color: inherit;
}
.like:hover, .disliked:hover{   
}
.liked, .disliked{
    padding: 0;
}
.liked i, .disliked i{
   color: var(--hight-light);
}
.share{
    cursor: pointer;
}
.post-list {
    margin-top: 40px;
}

.post-list h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.post-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.post-card img, .post-card video {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

.post-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border-radius: 10px;
}

.lock-overlay p {
    margin-bottom: 10px;
}

.lock-overlay button {
    background-color: #28a745;
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lock-overlay button:hover {
    background-color: #218838;
}

/* Success and Error Messages */
.success-msg {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    border-radius: 5px;
}

.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Footer */
footer {   
    text-align: center;
    width: 100%;
}




/* Responsive Design */
@media (max-width: 768px) {
   

    .follower-subscriber-counts {
        
        align-items: center;
    }

    .profile-container h1 {
        font-size: 24px;
    }

    .profile-container img {
        max-width: 120px;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    .actions form {
        margin-right: 0;
    }

    .actions button {
        width: 100%;
        padding: 10px 0;
    }

    .post-card {
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        display: block;
        margin: 0;
    }
}

/** discover */

.tabs {
    display: flex;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
}
.tab:hover, .tab-active {
    border-bottom: 2px solid #fff;    
}
.tab-content {
    display: none;
}
.tab-content-active {
    display: block;
}
.creator-list {
    list-style-type: none;
    padding: 0;
}
.creator-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.creator-info {
    display: flex;
    align-items: center;
}
.creator-list-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}
.creator-list-item a {
    text-decoration: none;
    font-size: 18px;
    color: var(--text-color);
}
.creator-list-item a:hover {
    color: var(--hight-light);
}
.follower-count {
    font-size: 14px;
}
.hashtag {
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.hashtag a {
    text-decoration: none;
    color: var(--text-color);
}
.hashtag a:hover {
    color: var(--hight-light);
}


/** profile */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
}
.profile-container img {
    max-width: 150px;
    border-radius: 50%;
}
.profile-container h1 {
    margin: 20px 0;
}
.actions {
    margin-top: 20px;
}
.actions button {
    padding: 10px 20px;
    margin-right: 10px;
}
.follower-subscriber-counts {
    margin-top: 10px;
}
.post-list {
    margin-top: 30px;
}
.post-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}
.post-card img, .post-card video {
    max-width: 100%;
    height: auto;
}
.lock-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
}


/** hastag */
/**
.hashtag-container {
}
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.post-card {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}
.post-card img, .post-card video {
    max-width: 100%;
    height: auto;
}
.post-card h3 {
    margin: 10px 0;
}
.post-card p {
    color: #666;
}
.post-card .profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.post-card .profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
    */

.tabs {
    display: flex;
    justify-content: center;
    border:none;
}
.tabs a {
    padding: 10px 15px;   
    text-decoration: none;
    font-weight: bold;
}
.tabs a.active, .tabs a:hover {            
    color: var(--text-color);
    border-bottom: 2px solid var(--text-color);
}