
:root {
    --primary-dark: #0d0d0d;
    --bg-card: rgba(26, 26, 26, 0.8);
    --text-light: #ffffff;
    --text-accent: #ffeb3b;
    --ph-blue: #0033a0;
    --ph-red: #ce1126;
    --ph-yellow: #fecb00;
    --ph-yellow-transparent: rgba(254, 203, 0, 0.9);
    --shadow: rgba(0, 0, 0, 0.5);
    --glass-blur: blur(10px);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, rgba(255,215,0,0.08), transparent 60%),
        linear-gradient(180deg, #0b0b0f 0%, #0e0e14 100%);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--ph-yellow);
}

/* ================= HEADER ================= */
header {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow);
}
header .header-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}


.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}


header .header-logo img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
}



.header-title h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
}

/* NAV */
nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition-normal);
}

nav a:hover {
    background: rgba(255,235,59,0.1);
    transform: translateY(-2px);
}

nav a.active {
    background: rgba(255,235,59,0.1);
    color: var(--ph-yellow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* ================= UTILITY CLASSES ================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ================= ANIMATIONS ================= */
@keyframes posterReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: 6px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 2px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HERO SECTION ================= */

.hero {
    width: 100%;
    min-height: calc(110vh - 90px);
    padding: 150px 50px 40px;
    background: linear-gradient(135deg, var(--ph-blue), var(--ph-red), var(--ph-yellow));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/chess-bg.jpg") center / cover no-repeat;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.hero-content, .hero-image {
    position: relative;
    z-index: 2;
}

/* POSTER-STYLE HERO TEXT */
.hero-top {
    font-size: 7em;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
    animation: posterReveal 0.8s ease forwards;
}

.hero-title {
    font-size: 4.8em;
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--ph-yellow);
    margin: 0 0 18px;
    text-shadow:
        0 0 8px rgba(254,203,0,0.4),
        0 0 20px rgba(0,0,0,0.6);
    animation: posterReveal 1s ease forwards;
}

.hero-location {
    font-size: 1.6em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
    animation: posterReveal 1.2s ease forwards;
}

.hero-label {
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
    animation: posterReveal 1.3s ease forwards;
}

.assoc {
    font-size: 1.9em;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ph-yellow);
    letter-spacing: 1px;
    margin-bottom: 35px;
    text-shadow: 0 0 10px rgba(254,203,0,0.35);
    animation: posterReveal 1.4s ease forwards;
}

/* ================= BUTTON FIXES ================= */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: #0a1cff;
    color: white;
    font-weight: 800;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    /* REMOVED opacity and animation from base class */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #0918e6;
}

/* Hero buttons specifically get the animation */
.hero .btn {
    opacity: 0;
    animation: posterReveal 1.6s ease forwards;
}

/* Secondary button style - COMPLETE STYLES ADDED */
.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 36px;
    font-weight: 800;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Tournament Info Section Button Container */
.info-button-container {
    margin-top: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Tournament info section buttons - FIXED */
.info-button-container .btn,
.info-button-container .secondary-btn {
    opacity: 1 !important; /* Force visibility */
    animation: none !important; /* No animation */
    visibility: visible !important;
}

.info-button-container .secondary-btn {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.7), rgba(206, 17, 38, 0.7));
    border: 2px solid var(--ph-yellow);
    color: white;
    min-width: 350px;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-button-container .secondary-btn:hover {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.9), rgba(206, 17, 38, 0.9));
    border-color: var(--ph-yellow);
    box-shadow: 0 12px 25px rgba(254, 203, 0, 0.4);
    transform: translateY(-5px);
}

/* HERO IMAGE */
.hero-image {
    flex: 1.3;
    max-width: none;
    width: 100%;
    margin-top: 210px;
    margin-bottom: -70px;
    transform: scale(1.25);
    transform-origin: bottom center;
}

/* ================= COUNTDOWN TIMER ================= */
.countdown-section {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-title {
    font-size: 2.5em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(0, 51, 160, 0.2);
    border: 2px solid var(--ph-yellow);
    padding: var(--spacing-lg);
    min-width: 140px;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
    background: rgba(0, 51, 160, 0.3);
}

.countdown-number {
    font-size: 4em;
    font-weight: 900;
    line-height: 1;
    color: var(--ph-yellow);
    text-shadow: 0 0 10px rgba(254, 203, 0, 0.5);
}

.countdown-label {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    opacity: 0.9;
}

/* ================= REGISTER PREVIEW ================= */
.register-page {
    padding: var(--spacing-xl) 0;
    position: relative;
    min-height: 800px;
}

.register-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.register-wrapper h2 {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Tournament grid */
#register-preview .tournament-info,
.tournament-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}
#register-preview .tournament-info .tournament-card,
.tournament-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: 0.75rem; /* Smaller padding */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 150px; /* Smaller height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ph-blue), var(--ph-yellow), var(--ph-red));
}

.tournament-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, var(--ph-yellow), #ff9800, var(--ph-yellow));
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.tournament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--ph-yellow);
}

.card-icon {
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-md);
}

.tournament-card h3 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    margin-bottom: var(--spacing-lg);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
}

.register-link {
    color: var(--ph-yellow);
    font-weight: 600;
    font-size: 1.1em;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tournament-card:hover .register-link {
    color: #fff;
    transform: translateX(5px);
}

/* ================= MODAL STYLES ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--ph-yellow);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: var(--ph-yellow);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    background: rgba(206, 17, 38, 0.3);
    transform: rotate(90deg);
}

.modal-content h2 {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    margin: 0;
    color: var(--ph-yellow);
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(254, 203, 0, 0.3);
}

.modal-body {
    padding: 0 var(--spacing-xl);
}

.rules-section {
    margin-bottom: var(--spacing-xl);
}

.rules-section h3 {
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rules-list {
    display: grid;
    gap: var(--spacing-md);
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: var(--spacing-md);
    background: rgba(0, 51, 160, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--ph-yellow);
    transition: var(--transition-normal);
}

.rule-item:hover {
    background: rgba(0, 51, 160, 0.2);
    transform: translateX(5px);
}

.rule-item i {
    color: var(--ph-yellow);
    font-size: 1.5em;
    margin-top: 3px;
}

.payment-section {
    margin-bottom: var(--spacing-xl);
}

.payment-section h3 {
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.payment-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(254, 203, 0, 0.3);
    transition: var(--transition-normal);
}

.payment-method:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
    border-color: var(--ph-yellow);
}

.payment-method i {
    font-size: 2.5em;
    color: var(--ph-yellow);
}

.payment-method strong {
    color: var(--ph-yellow);
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.confirmation-section {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0;
    border: 1px solid rgba(254, 203, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: var(--spacing-md);
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-input {
    margin-top: 5px;
    min-width: 25px;
    height: 25px;
    accent-color: var(--ph-yellow);
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.5;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 2px solid rgba(254, 203, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.proceed-btn {
    background: rgba(0, 51, 160, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
}

.proceed-btn.enabled {
    background: var(--ph-blue);
    color: var(--text-light);
    cursor: pointer;
    border-color: var(--ph-yellow);
}

.proceed-btn.enabled:hover {
    background: #00257a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 160, 0.4);
}

/* ================= ABOUT SECTION ================= */
.about {
    padding: var(--spacing-xl) 0;
    position: relative;
    min-height: 800px;
}

.about h2 {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Info cards - shared with tournament cards */
.info-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--ph-yellow);
}

.info-card i {
    font-size: 3.5em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-md);
}

.info-card h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.8em;
}

/* ================= SPONSORS ================= */
.sponsors-section {
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.sponsor-logo {
    padding: var(--spacing-xl);
    background: rgba(0, 51, 160, 0.1);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--ph-yellow);
    transition: var(--transition-normal);
}

.sponsor-logo:hover {
    transform: translateY(-5px);
    background: rgba(0, 51, 160, 0.2);
    box-shadow: 0 10px 30px rgba(254, 203, 0, 0.2);
}

.sponsor-logo h3 {
    color: var(--ph-yellow);
    margin-bottom: 15px;
}

/* ================= SCHEDULE ================= */
.schedule-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.schedule-section h2 {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.schedule {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--ph-blue), var(--ph-red));
    color: var(--ph-yellow);
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--ph-yellow);
}

.schedule-table td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background: rgba(254, 203, 0, 0.1);
    transform: scale(1.01);
}
/* ================= SCHEDULE RESPONSIVE FIXES ================= */
@media (max-width: 992px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .schedule-table th,
    .schedule-table td {
        min-width: 150px;
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .schedule-table {
        font-size: 0.9em;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
        min-width: 120px;
    }
    
    .schedule-table td {
        line-height: 1.4;
    }
    
    /* Make some cells wrap text */
    .schedule-table td:nth-child(3) {
        white-space: normal;
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    /* Stack table vertically on very small screens */
    .schedule-table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr {
        display: block;
    }
    
    .schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .schedule-table tr {
        margin-bottom: 15px;
        border: 2px solid rgba(254, 203, 0, 0.3);
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .schedule-table td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
        min-width: auto;
    }
    
    .schedule-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--ph-yellow);
    }
    
    /* Add data-label attributes to your HTML for this to work */
    .schedule-table td:nth-of-type(1):before { content: "Date"; }
    .schedule-table td:nth-of-type(2):before { content: "Category / Event"; }
    .schedule-table td:nth-of-type(3):before { content: "Details"; }
    .schedule-table td:nth-of-type(4):before { content: "Venue"; }
}
/* ================= VENUE & CONTACT ================= */
.venue-contact {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.venue-contact h2 {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--ph-yellow);
}

.contact-card h3 {
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: var(--spacing-md);
}

.contact-info i {
    color: var(--ph-yellow);
    font-size: 1.5em;
    margin-top: 3px;
}

.contact-info strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

/* ================= RESULTS ================= */
.results-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.results-section h2 {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.result-item {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border-left: 6px solid var(--ph-yellow);
    transition: var(--transition-normal);
}

.result-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(254, 203, 0, 0.2);
    border-left-color: var(--ph-blue);
}

.result-item h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.8em;
}

.result-item small {
    color: var(--ph-yellow);
    font-weight: 700;
    display: block;
    margin-top: var(--spacing-md);
    font-size: 1.2em;
}

/* ================= FOOTER ================= */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 3px solid var(--ph-yellow);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--ph-yellow);
    transform: translateX(10px);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(254, 203, 0, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--ph-yellow);
    color: #000;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.7;
}

/* Apply to specific important sections */
.register-page,
.schedule-section,
.about {
    position: relative;
    overflow: hidden;
}

/* Apply to specific important sections */
.register-page,
.schedule-section {
    position: relative;
    overflow: hidden;
}

/* Apply to specific important sections */
.register-page,
.schedule-section,
.about { /* ADD .about here */
    position: relative;
    overflow: hidden;
}

.register-page::before,
.schedule-section::before,
.about::before { /* ADD .about::before here */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/info.jpg") center / cover no-repeat,
                linear-gradient(135deg, 
                    rgba(0, 51, 160, 0.1) 0%,
                    rgba(206, 17, 38, 0.1) 50%,
                    rgba(254, 203, 0, 0.1) 100%);
    background-blend-mode: overlay;
    opacity: 0.2;
    z-index: 0;
    filter: blur(1px);
}

/* Ensure content is readable */
.register-page > *,
.about > *,
.schedule-section > *,
.results-section > *,
.venue-contact > * {
    position: relative;
    z-index: 1;
}

/* Category-specific rules styling */
.rules-section.category-specific {
    background: linear-gradient(145deg, 
        rgba(0, 51, 160, 0.15) 0%,
        rgba(0, 0, 0, 0.25) 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--ph-yellow);
    position: relative;
    overflow: hidden;
}

.rules-section.category-specific::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ph-blue), var(--ph-yellow), var(--ph-red));
}

.rules-section.category-specific h3 {
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
}

.category-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(254, 203, 0, 0.3);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
}

.detail-item:hover {
    background: rgba(254, 203, 0, 0.1);
    transform: translateX(5px);
    border-radius: 8px;
}

.detail-item i {
    font-size: 1.5em;
    color: var(--ph-yellow);
    min-width: 30px;
    margin-top: 3px;
}

.detail-item strong {
    color: var(--ph-yellow);
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

/* QR Code styles */
.qr-code-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--ph-blue);
    background: rgba(255, 255, 255, 0.05);
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
    padding: 10px;
    box-sizing: border-box;
}

.qr-code:not([src]),
.qr-code[src=""],
.qr-code[src*="error"] {
    border: 2px dashed #ff4757;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 71, 87, 0.1),
        rgba(255, 71, 87, 0.1) 10px,
        rgba(255, 71, 87, 0.05) 10px,
        rgba(255, 71, 87, 0.05) 20px
    );
}

.qr-code:not([src])::after,
.qr-code[src=""]::after,
.qr-code[src*="error"]::after {
    content: 'QR Missing';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4757;
    font-size: 0.9em;
    font-weight: bold;
}

.payment-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.payment-info strong {
    color: var(--ph-yellow);
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 0.85em;
}

.payment-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75em;
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 3px;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .hero-top {
        font-size: 5em;
    }
    
    .hero-title {
        font-size: 3.5em;
    }
    
    .hero-image {
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px;
    }
    
    .hero-top {
        font-size: 4em;
    }
    
    .hero-title {
        font-size: 2.8em;
    }
    
    .hero-image {
        margin-top: 40px;
        transform: scale(1);
        max-width: 80%;
    }
    
    nav ul {
        gap: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        backdrop-filter: var(--glass-blur);
        padding: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        box-shadow: 0 10px 30px var(--shadow);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .hero-top {
        font-size: 3em;
    }
    
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-location {
        font-size: 1.2em;
    }
    
    .assoc {
        font-size: 1.5em;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: var(--spacing-md);
    }
    
    .countdown-number {
        font-size: 3em;
    }
    
    .register-wrapper h2,
    .about h2,
    .schedule-section h2,
    .venue-contact h2,
    .results-section h2 {
        font-size: 2.2em;
    }
    
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-body {
        padding: 0 var(--spacing-md);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    /* Responsive button fixes */
    .info-button-container .secondary-btn {
        min-width: 280px !important;
        padding: 14px 30px !important;
        font-size: 0.9em !important;
    }
}

@media (max-width: 480px) {
    .hero-top {
        font-size: 2.2em;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9em;
    }
    
    .countdown-timer {
        gap: var(--spacing-sm);
    }
    
    .countdown-item {
        min-width: 80px;
        padding: var(--spacing-sm);
    }
    
    .countdown-number {
        font-size: 2.5em;
    }
    
    .tournament-grid-4x4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Info Modal Styles */
.info-modal-content {
    max-width: 600px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
}

.info-modal-content h2 {
    color: var(--ph-yellow);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: 0;
    border-bottom: 2px solid rgba(254, 203, 0, 0.3);
}

.info-card-content {
    padding: var(--spacing-lg);
}

.info-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 51, 160, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--ph-yellow);
}

.info-detail-item i {
    color: var(--ph-yellow);
    font-size: 1.5em;
    margin-top: 3px;
    min-width: 30px;
}

.info-detail-item span {
    color: var(--text-light);
    line-height: 1.5;
}

.info-detail-item strong {
    color: var(--ph-yellow);
    display: block;
    margin-bottom: 5px;
}

/* Make info cards clickable */
.info-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border-color: var(--ph-yellow);
}

.info-card:active {
    transform: translateY(-2px);
}
                                                                                            /* Gallery Section */

/* Gallery Section */
.gallery-section {
    min-height: 600px;
    padding: 40px 20px 50px 20px;
    background: rgba(0, 51, 160, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gallery Title */
.gallery-title {
    text-align: center;
    font-size: 3em;
    color: var(--ph-yellow);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    width: 100%;
}

/* Two Columns Layout */
.gallery-two-columns {
    display: flex;
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Both Div Sections */
.gallery-div-1,
.gallery-div-2 {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Div 1 - Left Section */
.gallery-div-1 {
    background: rgba(255, 255, 255, 0.03);
}

/* Div 2 - Right Section */
.gallery-div-2 {
    background: rgba(255, 255, 255, 0.03);
}

/* Vertical Partition */
.vertical-partition {
    width: 4px;
    background: var(--ph-yellow);
    height: 80%;
    margin: auto 0;
    position: relative;
    box-shadow: 0 0 15px rgba(var(--ph-yellow-rgb, 255, 204, 0), 0.5);
}

/* Vertical Partition - Add to your existing CSS */
.vertical-partition {
    width: 4px;
    background: var(--ph-yellow);
    height: 80%;
    margin: auto 0;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

/* Add decorative ends to partition */
.vertical-partition::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--ph-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.vertical-partition::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--ph-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}
/* Div Titles */
.div-title {
    text-align: center;
    font-size: 2em;
    color: var(--ph-yellow);
    margin-bottom: var(--spacing-lg);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--ph-yellow-rgb, 255, 204, 0), 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: start;
}

/* Placeholder styling */
.gallery-grid::before {
    content: "Gallery items";
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alternative Partition Styles */

/* Style 2: Gradient Partition */
.vertical-partition.gradient {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--ph-yellow),
        transparent
    );
    width: 3px;
}

/* Style 3: Dotted Partition */
.vertical-partition.dotted {
    background: transparent;
    width: 4px;
    background-image: radial-gradient(
        circle at center,
        var(--ph-yellow) 2px,
        transparent 2px
    );
    background-size: 4px 15px;
    background-repeat: repeat-y;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-two-columns {
        flex-direction: column;
        height: auto;
        min-height: 800px;
    }
    
    .vertical-partition {
        width: 80%;
        height: 4px;
        margin: 20px auto;
    }
    
    .vertical-partition::before {
        top: 50%;
        left: -20px;
        transform: translateY(-50%);
    }
    
    .vertical-partition::after {
        top: 50%;
        right: -20px;
        left: auto;
        transform: translateY(-50%);
    }
    
    .gallery-div-1,
    .gallery-div-2 {
        padding: 30px 20px;
        min-height: 350px;
    }
}
/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 800px;
    height: 400px; 
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1); /* Added background for when no image loads */
}

/* ================= SLIDESHOW RESPONSIVE FIXES ================= */

.slideshow-container {
    position: relative;
    width: 100%; /* ✅ Change from 800px to 100% */
    max-width: 800px; /* ✅ Maximum size */
    height: 400px; /* Fixed height or make responsive */
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 auto 25px;
}


.slide {
    display: none;
    width: 100%;
    height: auto;
}
.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto; /* Natural image height */
    display: block;
    max-width: 100%;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: white;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    user-select: none;
    z-index: 10; /* Added to ensure arrows are above images */
    border: none; /* Added to remove default button styles */
    outline: none; /* Added for accessibility */
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 20px; /* Changed from 50px to 20px - closer to bottom */
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    z-index: 10; /* Added to ensure dots are above images */
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--ph-yellow, #ffcc00); /* Added fallback color */
}

.dot:hover {
    background-color: white;
}

/* Slideshow Controls */
.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    z-index: 10;
    position: relative;
}

.slideshow-btn {
    padding: 8px 20px;
    background: rgba(var(--ph-yellow-rgb, 255, 204, 0), 0.8);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
}

.slideshow-btn:hover {
    background: var(--ph-yellow, #ffcc00);
    transform: translateY(-2px);
}

/* Fade animation */
@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Adjust gallery div for slideshow */
.gallery-div-1 {
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px; /* Added responsive height for container */
    }
    
    .slide img {
        height: 100%; /* Keep at 100% for responsive */
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .dots-container {
        bottom: 15px; /* Adjusted for mobile */
    }
    
    .slideshow-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .slideshow-btn {
        width: 80%;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .slideshow-container {
        height: 300px;
    }
    
    .prev, .next {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}
/* ========== DIV2 ONLY - YOUTUBE PLAYLIST PANEL ========== */

/* ========== DIV2 ONLY - HEADER MATCHING GALLERY TITLE ========== */

/* Playlist Header - Match Gallery Title Style */
.playlist-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
    width: 100%;
}

.playlist-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

/* Remove the icon if you want it to match exactly */
.playlist-icon {
    display: none; /* Hide the emoji icon */
}

/* Make playlist-name exactly like gallery-title */
.playlist-name {
    color: var(--ph-yellow);
    font-size: 2.5em !important; /* Match gallery-title size */
    margin: 0 0 10px 0 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    width: 100%;
    text-align: center;
    text-shadow: 
        0 0 8px rgba(254,203,0,0.4),
        0 0 20px rgba(0,0,0,0.6);
    position: relative;
    display: inline-block;
}

/* Add underline like gallery-title if needed */
.playlist-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--ph-yellow);
    border-radius: 2px;
}

/* Hide the description or style it differently */
.playlist-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    margin: 5px 0 0 0;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1px;
}

/* Alternative: If you want just the title without description */
.playlist-header.simple .playlist-description {
    display: none;
}

/* Alternative: If you want title with smaller subtitle */
.playlist-header.with-subtitle .playlist-name {
    margin-bottom: 5px !important;
}

.playlist-header.with-subtitle .playlist-description {
    font-size: 0.9em;
    color: rgba(254, 203, 0, 0.7);
    font-weight: 400;
}

.playlist-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

/* Playlist Container */
.playlist-container {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 10px;
    margin-bottom: 15px;
}

/* Custom Scrollbar */
.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Playlist Item (YouTube Style) */
.playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

/* YouTube Thumbnail */
.playlist-thumbnail {
    position: relative;
    width: 120px;
    height: 68px; /* YouTube's 16:9 aspect ratio */
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #333; /* Fallback if image doesn't load */
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.playlist-item:hover .playlist-thumbnail img {
    transform: scale(1.05);
}

/* Video Duration Badge */
.playlist-thumbnail .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7em;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Play Indicator */
.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.playlist-item:hover .play-indicator {
    opacity: 1;
}

/* Video Info */
.playlist-item-info {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.item-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-channel {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    gap: 6px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

.item-views {
    font-weight: 500;
}

.item-time {
    color: rgba(255, 255, 255, 0.4);
}

/* Playlist Footer */
.playlist-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.playlist-stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    display: flex;
    gap: 8px;
}

.total-items {
    font-weight: 500;
}

.total-duration {
    color: rgba(255, 255, 255, 0.4);
}

/* View All Button */
.view-all-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ph-yellow);
    color: var(--ph-yellow);
}

/* Fallback for broken thumbnails */
.playlist-thumbnail::before {
    content: "🎵";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    display: none;
}

.playlist-thumbnail img:not([src]),
.playlist-thumbnail img[src=""] {
    opacity: 0;
}

.playlist-thumbnail img:not([src]) + .duration,
.playlist-thumbnail img[src=""] + .duration {
    display: none;
}

.playlist-thumbnail:has(img:not([src]))::before,
.playlist-thumbnail:has(img[src=""])::before {
    display: block;
}

/* Responsive for Div2 Only */
@media (max-width: 1024px) {
    .playlist-thumbnail {
        width: 100px;
        height: 56px;
    }
    
    .item-title {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .playlist-thumbnail {
        width: 90px;
        height: 51px;
    }
    
    .playlist-item {
        padding: 8px;
        gap: 10px;
    }
    
    .item-title {
        font-size: 0.85em;
        -webkit-line-clamp: 2;
    }
    
    .item-channel {
        font-size: 0.8em;
    }
    
    .item-meta {
        font-size: 0.75em;
    }
    
    .playlist-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .view-all-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .playlist-thumbnail {
        width: 80px;
        height: 45px;
    }
    
    .playlist-item {
        gap: 8px;
    }
    
    .duration {
        font-size: 0.65em;
        padding: 1px 3px;
    }
    
    .play-indicator {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ================= REGISTRATION NOTICE - MORE SPECIFIC ================= */
#registration-notice.reg,
.hero-content .reg,
section#home .reg {
    border: 3px solid #FFD700 !important;
    color: #FFD700 !important;
    padding: 18px 30px !important;
    border-radius: 12px !important;
    margin: 15px auto 20px !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    display: block !important;
    max-width: 650px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    clear: both !important;
    width: fit-content !important;
    
    /* Override any inherited animations */
    animation: posterReveal 1.6s ease forwards !important;
}

/* Remove any inherited styles from .assoc */
#registration-notice.reg {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    margin: 15px auto 20px !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}

/* Optional hover effect */
#registration-notice.reg:hover,
.hero-content .reg:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
}
