/* Shared Event Styles - Used across event detail and registration pages */

/* Hero Section */
.event-hero {
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.event-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a2540;
}

/* Event Cards */
.event-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-card .card-header {
    background: #f6f9fc;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.event-card .card-header h2,
.event-card .card-header h3,
.event-card .card-header h5 {
    font-weight: 600;
    color: #0a2540;
    margin: 0;
    font-size: 1rem;
}

.event-card .card-body {
    padding: 1.5rem;
}

/* Event Banner */
.event-banner {
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16 / 9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f6f9fc;
}

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

.info-item .icon,
dt .icon {
    width: 40px;
    height: 40px;
    background: #489FD4;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-item .content {
    flex: 1;
}

.info-item .label {
    font-size: 0.875rem;
    color: #5c7186;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-size: 1rem;
    color: #0a2540;
    font-weight: 500;
}

/* Definition Lists */
dt {
    font-weight: 600;
    color: #5c7186;
    font-size: 0.875rem;
}

dd {
    color: #0a2540;
}

/* Badges */
.badge-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
}

.badge-status {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-featured {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-difficulty {
    background: rgba(72, 159, 212, 0.1);
    color: #489FD4;
}

.badge-online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-venue {
    background: rgba(72, 159, 212, 0.1);
    color: #489FD4;
}

/* Event Meta Items */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #5c7186;
    font-weight: 500;
    font-size: 0.9375rem;
}

.event-meta-item i {
    margin-right: 0.5rem;
    color: #489FD4;
}

/* Alerts */
.alert-modern {
    border-radius: 0.5rem;
    border: 1px solid;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success-modern {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #166534;
}

.alert-warning-modern {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert-danger-modern {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-info-modern {
    background: rgba(72, 159, 212, 0.1);
    border-color: rgba(72, 159, 212, 0.2);
    color: #1e40af;
}

/* Registration Card */
.registration-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.registration-card .card-header {
    background: linear-gradient(135deg, #489FD4 0%, #3a8bc2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.registration-card .card-header h2,
.registration-card .card-header h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.registration-card .card-body {
    padding: 1.5rem;
}

/* Stats Card */
.stats-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0a2540;
}

.stat-label {
    font-size: 0.875rem;
    color: #5c7186;
    font-weight: 500;
}

.progress-modern {
    height: 8px;
    border-radius: 4px;
    background: #f6f9fc;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-modern {
    background: linear-gradient(90deg, #489FD4 0%, #3a8bc2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 100px;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid;
    font-size: 0.875rem;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.share-btn.twitter {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    border-color: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Registration Status Styles */
.registration-status-card {
    margin-bottom: 1.5rem;
}

.status-success,
.status-pending,
.status-rejected,
.status-waitlist {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0a2540;
}

.status-message {
    font-size: 0.875rem;
    color: #5c7186;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: #5c7186;
}

.detail-item i {
    margin-right: 0.5rem;
    width: 12px;
    text-align: center;
}

.registration-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-hero {
        padding: 1.5rem 0;
    }

    .event-hero h1 {
        font-size: 1.5rem;
    }

    .event-hero p.text-muted span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .event-hero p.text-muted span:last-child {
        margin-bottom: 0;
    }

    .event-hero p.text-muted span i {
        margin-right: 0.5rem;
        min-width: 16px;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-meta-item {
        justify-content: flex-start;
    }

    .event-meta-item i {
        margin-right: 0.5rem !important;
        min-width: 16px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .info-item .icon,
    dt .icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    dt {
        margin-bottom: 0.5rem;
    }

    dt .icon {
        margin-right: 0.5rem;
    }

    dd {
        margin-left: 0;
    }

    .status-success,
    .status-pending,
    .status-rejected,
    .status-waitlist {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .status-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .status-details {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .event-card .card-body,
    .registration-card .card-body,
    .stats-card .card-body {
        padding: 1.25rem;
    }
}
