/* ============================================================================
   EVENTS & WEBINARS - Complete CSS Module (FIXED)
   Now uses global variables from variables.css
   Theme: Teal/Turquoise gradient (#4fb3d9 to #5dbea3)
   ============================================================================ */

/* ============================================================================
   1. EVENT CARD COMPONENTS
   ============================================================================ */

.event-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.event-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--primary-gradient);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.event-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(79, 179, 217, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.event-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.event-meta small {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================================================
   2. EVENT STATUS INDICATORS
   ============================================================================ */

.event-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: #d1ecf1;
    color: #0c5460;
}

.status-ongoing {
    background: #c3e6cb;
    color: #155724;
    animation: pulse-green 2s infinite;
}

.status-past {
    background: #f8d7da;
    color: #721c24;
}

.status-full {
    background: #f5c6cb;
    color: #721c24;
}

.status-free {
    background: #d1ecf1;
    color: #0c5460;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ============================================================================
   3. EVENT DETAIL PAGE
   ============================================================================ */

.event-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -50px);
}

.event-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.event-hero-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 1.05rem;
}

.event-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-hero-meta-item i {
    font-size: 1.3rem;
}

.event-info-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.event-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================================
   4. REGISTRATION SECTION
   ============================================================================ */

.registration-widget {
    background: linear-gradient(135deg, rgba(79, 179, 217, 0.05) 0%, rgba(93, 190, 163, 0.05) 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.registration-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.registration-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    margin-bottom: 12px;
}

.registration-button.btn-register {
    background: var(--primary-gradient);
    color: white;
}

.registration-button.btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.registration-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.availability-info {
    font-size: 0.95rem;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 12px;
}

.availability-info.full {
    color: #721c24;
    background: #f8d7da;
}

.availability-info.limited {
    color: #856404;
    background: #fff3cd;
}

.availability-info.available {
    color: #155724;
    background: #d4edda;
}

/* ============================================================================
   5. SPEAKERS SECTION
   ============================================================================ */

.speakers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.speaker-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.speaker-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.speaker-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.speaker-title {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.speaker-bio {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 12px;
}

.speaker-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.speaker-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.speaker-social a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

/* ============================================================================
   6. MATERIALS SECTION
   ============================================================================ */

.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.material-item:hover {
    background: var(--bg-gray-dark);
}

.material-info {
    flex-grow: 1;
}

.material-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.material-type {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.material-download {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.material-download:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================================================
   7. FEEDBACK SECTION
   ============================================================================ */

.feedback-summary {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.feedback-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 1.3rem;
    color: var(--warning-yellow);
}

.rating-text {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.feedback-form {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.rating-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-input {
    flex: 1;
    min-width: 50px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.rating-input input[type="radio"]:checked+label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================================================
   8. ATTENDEES LIST
   ============================================================================ */

.attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.attendee-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.attendee-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.attendee-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.attendee-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.attendee-job {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.networking-button {
    padding: 8px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.networking-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ============================================================================
   9. FILTERS & SEARCH
   ============================================================================ */

.events-filter-section {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-option {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================================================
   10. PAGINATION
   ============================================================================ */

.pagination {
    margin-top: 40px;
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-light);
    border-radius: var(--radius-sm);
    margin: 0 4px;
    transition: var(--transition-base);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

/* ============================================================================
   11. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .event-hero-title {
        font-size: 1.8rem;
    }

    .event-hero-meta {
        gap: 15px;
    }

    .registration-widget {
        position: static;
        margin-bottom: 20px;
    }

    .event-info-grid {
        grid-template-columns: 1fr;
    }

    .speakers-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .event-card-image {
        height: 150px;
    }

    .attendees-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .filter-options {
        flex-direction: column;
    }

    .filter-option {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .event-hero {
        padding: 20px 0;
    }

    .event-hero-title {
        font-size: 1.4rem;
    }

    .event-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .event-info-section {
        padding: 15px;
    }

    .speakers-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .event-card {
        margin-bottom: 15px;
    }

    .registration-button {
        padding: 10px 16px;
        font-size: 1rem;
    }
}

/* ============================================================================
   12. ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeIn 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-info-section {
    animation: slideInUp 0.5s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.status-ongoing {
    animation: pulse 2s infinite;
}