/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo-inspired color palette */
    --primary-color: #4D9B4D;        /* Green from logo */
    --secondary-color: #7B68C4;      /* Purple from logo */
    --accent-color: #F4E96D;         /* Yellow/Gold from logo */
    --dark-green: #2E7D32;           /* Darker green */
    --dark-purple: #5E4FA2;          /* Darker purple */
    --light-yellow: #FFF9C4;         /* Light yellow background */
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --success: #4CAF50;
    --error: #f44336;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo h1 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background-color: var(--dark-green);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 100;
    list-style: none;
    display: flex;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 1rem 0;
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .nav-login {
    background-color: var(--accent-color);
    color: var(--dark-green);
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

.nav-links .nav-login:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Logo Hero Section */
.logo-hero {
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
}

.hero-logo {
    max-width: 400px;
    width: 90%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

.logo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 10px;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--secondary-color);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 15px;
}

/* Hide logo hero on mobile and tablet devices */
@media (max-width: 1320px) {
    .logo-hero {
        display: none;
    }
}

/* Page Sections */
.page-section {
    padding: 80px 20px;
    background-color: var(--light-gray);
    min-height: calc(100vh - 200px);
}

.page-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 20px;
    background-color: var(--white);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Judges Page Styles */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 3rem 0;
}

.judge-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.judge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.judge-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.judge-location {
    color: var(--gray);
    font-size: 1rem;
}

.criteria-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--primary-color);
}

.criteria-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.criteria-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.criteria-content h3:first-child {
    margin-top: 0;
}

.criteria-list {
    list-style-position: inside;
    margin: 1rem 0;
    padding-left: 1rem;
}

.criteria-list li {
    margin: 0.75rem 0;
    color: var(--gray);
    line-height: 1.6;
}

.cta-text {
    margin-top: 2rem;
    font-size: 1.1rem;
    text-align: center;
}

.cta-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.cta-text a:hover {
    color: var(--secondary-color);
}

/* Members Page Styles */
.members-info {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.members-info p {
    margin: 0.5rem 0;
    color: var(--gray);
}

.info-note {
    font-size: 0.9rem;
    font-style: italic;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 3rem 0;
}

.member-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.member-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.member-location {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.member-status {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.membership-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
}

.membership-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.membership-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.membership-cta .cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.membership-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1320px) {
    .navbar .container {
        padding: 0 15px;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-image {
        height: 40px;
    }

    .logo-hero {
        padding: 50px 15px 40px;
    }

    .hero-logo {
        max-width: 280px;
        width: 85%;
    }
}

@media (max-width: 768px) {
    .about h2,
    .gallery h2,
    .contact h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo-image {
        height: 35px;
    }

    .logo h1 {
        font-size: 0.85rem;
    }

    .logo-hero {
        padding: 40px 12px 30px;
    }

    .hero-logo {
        max-width: 200px;
        width: 80%;
        margin-bottom: 1.5rem;
    }

    .about,
    .gallery,
    .contact {
        padding: 50px 20px;
    }

    .navbar .container {
        padding: 0 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 40px;
        right: 20px;
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   AUTHENTICATION PAGES STYLES
   ============================================ */

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 200px);
    padding: 80px 20px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.auth-form {
    padding: 40px 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-links {
    text-align: center;
    padding: 0 30px 20px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-footer {
    background-color: var(--light-gray);
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 0;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-section {
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.member-status-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.member-status-badge.status-active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: var(--white);
}

.member-status-badge.status-pending {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
    color: var(--white);
}

.member-status-badge.status-inactive {
    background-color: #9E9E9E;
    color: var(--white);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.alert-card {
    border-left: 4px solid #FFA726;
}

.card-header {
    padding: 20px 25px;
    background-color: var(--light-gray);
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin: 0;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: var(--secondary-color);
}

.card-body {
    padding: 25px;
}

.profile-info,
.membership-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--dark-green);
    font-size: 0.95rem;
}

.info-value {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: right;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.benefits-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link-item {
    display: block;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.quick-link-item:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.quick-link-item h4 {
    color: var(--dark-green);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.quick-link-item:hover h4 {
    color: var(--white);
}

.quick-link-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.quick-link-item:hover p {
    color: var(--white);
}

/* Payment Pages */
.membership-fee {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--accent-color);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 15px;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 1.6rem;
    }

    .auth-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.4rem;
    }

    .auth-header p {
        font-size: 0.95rem;
    }

    .dashboard-header h1 {
        font-size: 1.6rem;
    }

    .member-status-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
