/* ========================================
   Modern Events Styling
   events-modern.css
   ======================================== */

/* Event Detail Page Styles */
.event-detail-page {
    background: #f8fafc;
}

/* Event Hero */
.event-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.event-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3EA2BE 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 162, 190, 0.85) 0%, rgba(41, 128, 185, 0.9) 100%);
}

.event-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.event-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: -15px 0 0 0;
}

.event-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.event-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.meta-item i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.meta-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item strong {
    font-weight: 600;
}

.meta-item span {
    opacity: 0.9;
    font-size: 0.875rem;
}

.event-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.registration-confirmed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.registration-confirmed i {
    font-size: 1.5rem;
}

.registration-confirmed small {
    margin-left: auto;
    opacity: 0.9;
    font-size: 0.875rem;
}

.registration-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.registration-status.full {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: white;
}

.registration-status.closed {
    background: rgba(107, 114, 128, 0.15);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: white;
}

.registration-deadline {
    opacity: 0.9;
    font-size: 0.875rem;
}

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

/* Buttons - Modern Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2B7A8F, #1f5a6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 162, 190, 0.4);
}

.btn-secondary {
    background: white;
    color: #3EA2BE;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: white;
    transform: translateY(-1px);
}

.btn-outline-danger {
    background: transparent;
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.5);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.8);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-block {
    width: 100%;
}

/* Event Content */
.event-content {
    padding: 3rem 0;
}

.event-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.event-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Speakers */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.speaker-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #3EA2BE;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.speaker-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.speaker-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.speaker-bio {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.speaker-links {
    display: flex;
    gap: 0.75rem;
}

.speaker-links a {
    color: #3EA2BE;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.speaker-links a:hover {
    color: #2980b9;
    transform: scale(1.1);
}

/* Sponsors */
.sponsor-level {
    margin-bottom: 2rem;
}

.sponsor-level h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.sponsors-grid {
    display: grid;
    gap: 1rem;
}

.sponsors-grid.sponsor-level-title,
.sponsors-grid.sponsor-level-presenting {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sponsors-grid.sponsor-level-gold,
.sponsors-grid.sponsor-level-silver {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.sponsors-grid.sponsor-level-bronze,
.sponsors-grid.sponsor-level-partner,
.sponsors-grid.sponsor-level-media {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.sponsor-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    margin-bottom: 0.5rem;
}

.sponsor-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sponsor-link {
    font-size: 0.875rem;
    color: #3EA2BE;
    text-decoration: none;
}

.sponsor-link:hover {
    text-decoration: underline;
}

/* Sidebar */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item i {
    color: #3EA2BE;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    font-weight: 600;
    color: #1a365d;
}

.info-item span {
    color: #6b7280;
    font-size: 0.875rem;
}

.venue-address {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Pricing */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-tier {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tier-name {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.tier-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.member-price {
    color: #059669;
    font-weight: 600;
}

.public-price {
    color: #6b7280;
    font-size: 0.875rem;
}

.price {
    color: #1a365d;
    font-weight: 600;
}

.tier-description {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Map */
.map-container {
    margin-bottom: 1rem;
}

.event-map-embed {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
}

/* Registration Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1a365d;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f9fafb;
}

/* Modern Form Styling */
.modern-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.modern-form .form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: #3EA2BE;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3EA2BE;
    box-shadow: 0 0 0 3px rgba(62, 162, 190, 0.1);
    background: white;
}

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

/* Pricing Options in Modal */
.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.pricing-option:hover {
    border-color: #cbd5e0;
    background: white;
}

.pricing-option:has(input:checked) {
    border-color: #3EA2BE;
    background: rgba(62, 162, 190, 0.05);
}

.pricing-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #3EA2BE;
}

.option-content {
    flex: 1;
}

.option-name {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.25rem;
}

.option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.registration-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 2px solid #e2e8f0;
}

.total-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a365d;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }
    
    .event-subtitle {
        font-size: 1rem;
    }
    
    .event-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .event-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .event-hero {
        min-height: 400px;
    }
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .event-cta {
        align-items: stretch;
    }
    
    .registration-confirmed {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .registration-confirmed small {
        margin-left: 0;
    }
    
    .btn {
        justify-content: center;
    }
}