/* #!SECTION: FONT FAMILY */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Varela&display=swap');

/* #!SECTION: RESET AND BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E3FC02;
    --secondary-color: #B8D002;
    --accent-color: #ff6b6b;
    --success-color: #4ecdc4;
    --warning-color: #ffa726;
    --error-color: #ef5350;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --text-dark: #000000;
    
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #777777;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* #!SECTION: BODY */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    outline: none;
    padding: 2px;
}

/*
a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    text-decoration: underline;
    padding: 2px;
    border-radius: 6px;
} */

a:visited {
    outline: none;
    text-decoration: none;
    padding: 2px;
}

/* #!SECTION: HEADER */
.main-header {
    background-color: var(--bg-secondary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo a {
    background: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    font-family: 'Commissioner', sans-serif;
}

.nav-logo a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a {
    background: none;
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: none;
}

/* #!SECTION: FOOTER */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem 0; /* Add padding top, remove bottom for the sub-footer */
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    display: block;
    transition: var(--transition);
}

.footer-links li a:hover {
    background: none;
    border-left: 5px solid var(--primary-color);
    padding-left: 0.5rem;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* #!SECTION: MAIN CONTENT */
.page-content {
    max-width: 1400px; /* Matches the header max-width */
    margin: 2rem auto; /* Vertical spacing and horizontal centering */
    padding: 0 2rem;   /* Horizontal padding to prevent content from touching edges */
}

/* This rule is duplicated below, combining for clarity */
.profile-header p {
   margin: 0;
   color: var(--text-secondary);
}

.profile-actions a {
   text-decoration: none;
   background-color: var(--primary-color);
   color: var(--text-primary);
   padding: 10px 20px;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s;
}

.profile-actions a:hover {
   background-color: var(--secondary-color);
}

.video-gallery {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 1.5rem;
}

.video-card {
   background-color: var(--bg-tertiary);
   border: 1px solid var(--border-color);
   border-radius: 8px;
   overflow: hidden;
}

.video-card video {
   width: 100%;
   height: auto;
   display: block;
}

.video-info {
   padding: 1rem;
}

.video-info h3 {
   margin: 0 0 0.5rem 0;
   color: var(--text-primary);
}

.video-info p {
   margin: 0;
   color: var(--text-secondary);
   font-size: 0.9rem;
}

.no-videos {
   text-align: center;
   padding: 3rem;
   color: var(--text-secondary);
}

/* #!SECTION: BUTTONS */
.join-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.join-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* #!SECTION: INFO SECTIONS (INDEX PAGE) */
.info-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-section p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* #!SECTION: VIDEO HIGHLIGHTS (INDEX PAGE) */
.video-highlights-section {
    padding: 4rem 0;
}

.video-highlights-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.highlight-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-video-wrapper {
    position: relative;
    /* 9:16 aspect ratio for short-form video */
    padding-top: 177.77%; 
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.highlight-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.highlight-caption {
    padding: 1rem;
}

.highlight-caption h3 { 
    font-size: 1.1rem; 
    margin-bottom: 0.5rem; 
    color: var(--text-primary);
}

.highlight-caption .video-description { 
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    line-height: 1.5; 
    margin-bottom: 0.75rem;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta .uploader {
    color: var(--primary-color);
    font-weight: 500;
}

.video-meta .upload-date,
.video-meta .view-count,
.video-meta .like-count {
    color: var(--text-secondary);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-video-wrapper:hover .video-overlay {
    opacity: 1;
}

.watch-full-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-full-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Video Title Links */
.video-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-title-link:hover {
    color: var(--primary-color);
}

/* Video Actions */
.video-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.view-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-video-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Username Links */
.username-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.username-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.video-meta .username-link {
    font-weight: 600;
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.social-links-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: inline-block; /* Allow links to sit side-by-side */
    transition: var(--transition);
}

.social-links-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links-list li {
    display: inline-block; /* Arrange list items horizontally */
    margin: 0 1rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: perspective(1000px) rotateX(-30deg);
    transition: opacity 1s ease, transform 1s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

/* #!SECTION: FAN COUNTER (INDEX PAGE) */
.fan-counter-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh);
    padding: 2rem;
    background: radial-gradient(circle, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
}

.fan-counter-container h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.fan-count {
    font-size: clamp(4rem, 10vw, 6rem); /* Responsive font size */
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(227, 252, 2, 0.3);
    animation: glow 5s infinite;
}

/* #!SECTION: ANIMATIONS */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 15px rgba(227, 252, 2, 0.3), 
                 0 0 25px rgba(227, 252, 2, 0.2);
  }
  50% {
    text-shadow: 0 0 30px rgba(227, 252, 2, 0.6), 
                 0 0 40px rgba(227, 252, 2, 0.4);
  }
}

/* #!SECTION: FORMS (LOGIN/REGISTER) */
.form-container {
    background-color: var(--bg-secondary);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 1050px;
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-container textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 252, 2, 0.2);
}

.form-button {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.form-button:hover {
    background-color: var(--secondary-color);
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.error-box {
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.success-box {
    background-color: rgba(78, 205, 196, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* #!SECTION: PROFILE PAGE */
.profile-container {
   width: 90%;
   max-width: 1200px;
   margin: 2rem auto;
   padding: 2rem;
   background-color: var(--bg-secondary);
   border-radius: 8px;
}

.profile-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.profile-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.profile-header p {
    margin: 0;
}

.membership-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle; /* Aligns the badge nicely with the text */
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}


/* #!SECTION: UPLOAD FORM */
.form-container textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit; /* Ensures textarea uses the same font as other inputs */
    resize: none;
    min-height: 400px;
    outline: none;
}

.form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-align: left;
    font-weight: 500;
}

.form-container input[type="file"] {
    padding: 10px;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
    margin-bottom: 1rem;
}

.file-upload-wrapper input[type="file"] {
    /* Hide the default file input */
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background-color: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.file-upload-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.file-upload-text {
    /* Prevent long filenames from breaking the layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* Progress Bar Styling */
.progress-container {
    width: 100%;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    height: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    background-color: var(--success-color);
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: width 0.2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-text {
    z-index: 2;
    color: var(--text-primary);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.progress-details {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* #!SECTION: UPDATES PAGE */
.updates-container {
    max-width: 800px;
    margin: 0 auto;
}

.updates-main-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.update-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.update-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.update-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.update-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.update-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.no-updates {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .contacts-sidebar {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80vw;
        max-width: 320px;
        background: var(--bg-secondary);
        box-shadow: var(--shadow-md);
        z-index: 100;
    }
}