﻿/* =========================================
   BASE & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B2CBF;
    --primary-light: #9D4EDD;
    --primary-dark: #5A189A;
    --secondary-color: #FF6B6B;
    --secondary-light: #FF8E8E;
    --accent-color: #4CC9F0;
    --warning: #FFD166;
    --danger: #EF476F;
    --success: #06D6A0;

    --text-color: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --bg-color: #F8FAFC;

    --font-main: 'Outfit', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   LOADING SCREEN
   ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--text-color);
}

.spinner-container {
    margin: 2rem auto;
}

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

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.9;
}

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================================
   HEADER
   ========================================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.portal-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background: transparent;
    padding: 2rem 1.5rem;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.hero-content {
    background: linear-gradient(135deg, #240b36, #7B2CBF, #0f172a);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    border-radius: 30px;
    padding: 5rem 2rem;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 20px 50px rgba(123, 44, 191, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.hero-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
    font-size: 2.5rem;
}

.icon-2 {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
    font-size: 3.5rem;
    transform: rotate(-15deg);
}

.icon-3 {
    top: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite 0.5s;
    font-size: 2rem;
}

.icon-4 {
    bottom: 15%;
    left: 15%;
    animation: float 8s ease-in-out infinite 1.5s;
    font-size: 2.8rem;
    transform: rotate(10deg);
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h2 span {
    background: linear-gradient(to right, #ffd166, #ff9e00, #ffe6a7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 0.2rem;
    filter: drop-shadow(0 2px 10px rgba(255, 209, 102, 0.3));
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.btn-cta {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1.1rem 3.5rem;
    font-size: 1.15rem;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.6);
    background: white;
    color: var(--primary-dark);
}

/* =========================================
   EVENTS CONTROLS & FILTERS
   ========================================= */
.events-controls-container {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    margin: 2rem auto 3rem;
    max-width: 1200px;
    width: calc(100% - 2rem);
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.filters-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.filters-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.filters-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    background: transparent;
    margin: 0;
    padding: 0;
}

.filter-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    z-index: 1;
    font-size: 1rem;
}

.filter-select {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3.2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color);
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B2CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.filter-select:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
    background-color: white;
}

/* =========================================
   BUTTON STYLES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-card-action {
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

/* =========================================
   EVENTS SECTIONS
   ========================================= */
.panel-section {
    animation: fadeIn 0.4s ease;
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2rem);
}

#ongoing-section {
    background: linear-gradient(to right, rgba(255, 107, 107, 0.05), transparent);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

#upcoming-section {
    background: linear-gradient(to right, rgba(123, 44, 191, 0.05), transparent);
    border: 1px solid rgba(123, 44, 191, 0.1);
}

.section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-pulse {
    background: var(--secondary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* =========================================
   EVENTS GRID & CARDS
   ========================================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.event-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.event-image {
    width: 100%;
    height: auto;
    /* Allow height to be determined by image */
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove bottom space */
    object-fit: contain;
    /* Ensure full image is visible */
    /* Ensure full image is visible */
}



.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.status-upcoming {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
}

.status-ongoing {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.95), rgba(255, 75, 43, 0.95));
    animation: pulse-glow 2s infinite;
}

.status-completed {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.9), rgba(127, 140, 141, 0.9));
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 65, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
    }
}

.btn-share-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
}

.event-card:hover .btn-share-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-share-overlay:hover {
    transform: scale(1.15) !important;
    color: var(--primary-color);
    background: white;
}

.event-details {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.event-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.event-meta i {
    color: var(--primary-light);
    width: 20px;
    text-align: center;
}

.card-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.card-actions .btn {
    flex: 1;
}

/* =========================================
   MODALS
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.large {
    max-width: 650px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
    padding: 5px;
}

.close-modal:hover {
    color: var(--danger);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Registration Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-section-title {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 0.8rem;
}

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

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-modal label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-input-modal {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-modal:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.team-section {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team-label {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 !important;
}

.team-member-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.team-member-row .member-name {
    flex: 2;
}

.team-member-row .member-id {
    flex: 1;
}

.btn-remove-member {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-member:hover {
    background: var(--danger);
    color: white;
}

/* Details Modal */
.modal-content-wrapper {
    background: white;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    /* Fixed height for desktop to force internal scrolling */
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* Prevent wrapper scroll */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    color: var(--danger);
    background: #fee2e2;
}

/* =========================================
   DETAILS MODAL SPECIFIC (NEW)
   ========================================= */
/* =========================================
   DETAILS MODAL SPECIFIC (NEW)
   ========================================= */
.details-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    /* Better ratio for image vs content */
    height: 100%;
    min-height: 500px;
    /* Removed max-height here, controlled by wrapper */
    overflow: hidden;
    background: white;
}

.details-image-container {
    height: 100%;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    background: transparent;
    /* or black/f0f0f0 depending on preference */
}

.details-placeholder-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 2rem;
    text-align: center;
}

.status-badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Status variants matching event cards */
.status-badge-overlay.status-upcoming {
    color: var(--primary-color);
    border: 1px solid rgba(123, 44, 191, 0.1);
}

.status-badge-overlay.status-ongoing {
    color: var(--danger);
    animation: pulse 2s infinite;
    border: 1px solid rgba(239, 71, 111, 0.1);
}

.status-badge-overlay.status-completed {
    color: var(--text-light);
    background: rgba(241, 245, 249, 0.95);
}

.details-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.details-title-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.details-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
    background: rgba(123, 44, 191, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.action-area-inline {
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.details-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
    display: none;
}

/* Scrollable Description Area */
.details-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 1.5rem;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
.details-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.details-scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.details-scrollable-content::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.details-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.details-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
    opacity: 0.9;
}

.organizer-mini-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.organizer-mini-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* =========================================
   FOOTER
   ========================================= */
.app-footer {
    margin-top: 6rem;
    padding: 4rem 1.5rem 2rem;
    background: #0f172a;
    /* Slate 900 */
    border-top: none;
    color: #cbd5e1;
    /* Slate 300 */
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.developer-credits {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dev-name {
    color: #e2e8f0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.dev-name:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-sm {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text-light);
}

.registration-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-status.closed {
    color: var(--text-light);
}

/* =========================================
   MOBILE RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {

    /* Container Adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Header Mobile */
    .header-container {
        padding: 0 1rem;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-text h1 {
        font-size: 1.4rem;
    }

    .portal-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 1rem;
        margin-top: 70px;
    }

    .hero-content {
        padding: 2rem 1rem;
        border-radius: 20px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Events Controls Mobile */
    .events-controls-container {
        padding: 1.5rem 1rem;
        margin: 1rem auto 2rem;
        width: calc(100% - 1rem);
        border-radius: 16px;
    }

    .filters-header h3 {
        font-size: 1.5rem;
    }

    .filters-header p {
        font-size: 0.9rem;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .filter-wrapper {
        min-width: 100%;
    }

    .filter-select {
        border-radius: 12px;
        padding: 1rem 1rem 1rem 3rem;
    }

    .btn-icon {
        width: 100%;
        border-radius: 12px;
        height: 48px;
        margin-top: 0.5rem;
    }

    /* Sections Mobile */
    .panel-section {
        padding: 1.5rem 1rem;
        margin: 0 auto 2rem;
        width: calc(100% - 1rem);
        border-radius: 16px;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    /* Events Grid Mobile */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    /* Ongoing Events Horizontal Scroll */
    #ongoing-events-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0.5rem 1rem 2rem;
        margin: 0 -1rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #ongoing-events-grid::-webkit-scrollbar {
        display: none;
    }

    #ongoing-events-grid .event-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 280px;
        margin-bottom: 0;
    }

    #ongoing-events-grid .event-card:only-child {
        flex: 0 0 100%;
        min-width: 100%;
    }

    /* Event Cards Mobile */
    .event-card {
        border-radius: 16px;
    }

    .status-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.65rem;
        top: 10px;
        left: 10px;
    }

    .event-image {
        height: auto;
    }

    .event-details {
        padding: 1.2rem;
    }

    .event-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .event-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Modal Mobile Overrides */
    /* Modal Mobile Overrides */
    .modal-content-wrapper {
        width: 100%;
        height: 100%;
        max-height: 100%;
        /* Reset max-height */
        border-radius: 0;
        margin: 0;
        background: white;
        overflow-y: auto;
        /* Restore scroll */
        display: block;
        /* Reset flex */
    }

    .close-modal-btn {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        width: 36px;
        height: 36px;
        z-index: 2000;
    }


    /* Form Grid Mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Footer Mobile */
    .app-footer {
        padding: 3rem 1.5rem;
        margin-top: 4rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    .developer-credits {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Mobile details overrides */
    .modal-content.large {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        margin: 0;
    }

    .details-grid {
        grid-template-columns: 1fr;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding-bottom: 100px;
        /* Space for sticky action bar */
        position: relative;
        border-radius: 0;
    }

    .details-image-container {
        height: 280px;
        /* Balanced height */
        flex-shrink: 0;
        width: 100%;
        background: #f1f5f9;
        position: relative;
    }

    .details-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Ensure full image on mobile too */
    }

    .details-info {
        padding: 1.5rem;
        height: auto;
        overflow: visible;
        display: block;
    }

    .details-scrollable-content {
        overflow: visible;
        padding-top: 0;
        flex: none;
    }

    .details-meta-section {
        order: -1;
        /* Move date/venue to top on mobile */
        margin-bottom: 1.5rem;
    }



    .details-title-large {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .details-meta-row {
        gap: 0.8rem;
        margin-bottom: 0.6rem;
    }

    /* Sticky Action Bar for Mobile */
    .action-area-inline {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin: 0;
        /* Override desktop margin */
    }

    .action-area-inline button {
        flex: 1;
        margin-bottom: 0 !important;
        padding: 0.9rem;
        font-size: 1rem;
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        /* Pill shape for mobile buttons */
    }

    .registration-status {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* =========================================
   TABLET RESPONSIVE DESIGN
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .filters-bar {
        flex-wrap: wrap;
    }

    .filter-wrapper {
        flex: 1 1 calc(50% - 1rem);
        min-width: auto;
    }
}

/* =========================================
   LOADING STATES & EMPTY STATES
   ========================================= */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    width: 100%;
    grid-column: 1 / -1;
}

/* =========================================
   EMPTY STATES
   ========================================= */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid var(--border-color);
}

.empty-icon-box {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    /* Light green/neutral bg, or maybe stay theme color */
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    /* Light purple theme */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.15);
    animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .empty-state {
        padding: 3rem 1.5rem;
        margin: 1.5rem 0;
    }

    .empty-icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }
}

/* =========================================
   SKELETON LOADING
   ========================================= */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: #e2e8f0;
    background-image: linear-gradient(to right, #e2e8f0 0%, #f1f5f9 20%, #e2e8f0 40%, #e2e8f0 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .skeleton-card {
        min-width: 0;
        flex-shrink: 1;
    }
}

.skeleton-image {
    height: 200px;
    width: 100%;
    border-radius: 0;
}

.skeleton-date {
    height: 14px;
    width: 50%;
    margin-bottom: 0.8rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 28px;
    width: 90%;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.skeleton-meta {
    height: 14px;
    width: 70%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-btn {
    height: 38px;
    flex: 1;
    border-radius: var(--radius-md);
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {

    .app-header,
    .events-controls-container,
    .btn-share-overlay,
    .card-actions,
    .app-footer,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Team Member Row Styling */
.team-member-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.team-member-row input {
    flex: 1;
}

.team-member-row .member-contact {
    flex: 0 0 140px;
}

.btn-remove-member {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-remove-member:hover {
    background: #fecaca;
}