/* Minimalist Event Styles - Yarl IT Hub */

/* Event Detail Page Styles */
.event-hero {
    background: #f8f9fa;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.event-hero-content {
    padding: 3rem 0;
}

.event-banner {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.event-info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.event-info-card .card-body {
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.info-item .icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 6px;
    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: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.registration-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.registration-card .card-header {
    background: #28a745;
    color: white;
    border: none;
    padding: 1.5rem;
}

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

.stats-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

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

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.progress-modern {
    height: 6px;
    border-radius: 3px;
    background: #f8f9fa;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-modern {
    background: #007bff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.badge-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-status {
    background: #28a745;
    color: white;
}

.badge-featured {
    background: #ffc107;
    color: #212529;
}

.badge-difficulty {
    background: #17a2b8;
    color: white;
}

.btn-modern {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-modern:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-outline-modern {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-modern:hover {
    background: #6c757d;
    color: white;
}

.alert-modern {
    border-radius: 6px;
    border: 1px solid;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success-modern {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning-modern {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger-modern {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info-modern {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #007bff;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #495057;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212529;
}

.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: 6px;
    color: #495057;
    font-weight: 500;
}

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

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

/* General event description - only for detail pages outside event-info-card */
.event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    display: block;
    overflow: visible;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 100px;
    border-radius: 6px;
    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;
}

.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;
}

/* Event List Page Styles */
.events-hero {
    background: #f8f9fa;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.events-hero-content {
    padding: 4rem 0;
}

.search-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 6px;
    padding: 0.875rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.filter-tabs {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.filter-tab {
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-tab:hover,
.filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    text-decoration: none;
}

.event-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
    height: 100%;
}

.event-card:hover {
    border-color: #007bff;
}

.event-card-image {
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

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

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

.event-date {
    background: #007bff;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-title a {
    color: inherit;
    text-decoration: none;
}

.event-title a:hover {
    color: #007bff;
}

/* Event description on list pages - should be truncated */
.event-card .event-description {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event description on detail pages - show full content */
.event-info-card .event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    word-wrap: break-word;
    display: block;
    overflow: visible;
    max-height: none;
    margin-bottom: 0;
}

.event-info-card .event-description p {
    margin-bottom: 1rem;
}

.event-info-card .event-description p:last-child {
    margin-bottom: 0;
}

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

.event-meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.event-meta-item i {
    margin-right: 0.375rem;
    color: #007bff;
    width: 14px;
}

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

.event-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.pagination-modern {
    justify-content: center;
    margin-top: 3rem;
}

.page-link-modern {
    background: white;
    border: 1px solid #e9ecef;
    color: #6c757d;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link-modern:hover,
.page-link-modern.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Registration Page Styles */
.registration-hero {
    background: #f8f9fa;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.registration-hero-content {
    padding: 3rem 0;
}

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

.form-label-modern {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control-modern,
.registration-card input[type="text"],
.registration-card input[type="email"],
.registration-card input[type="tel"],
.registration-card input[type="password"],
.registration-card textarea,
.registration-card select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
    width: 100%;
}

.form-control-modern:focus,
.registration-card input[type="text"]:focus,
.registration-card input[type="email"]:focus,
.registration-card input[type="tel"]:focus,
.registration-card input[type="password"]:focus,
.registration-card textarea:focus,
.registration-card select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-control-modern.is-invalid,
.registration-card input[type="text"].is-invalid,
.registration-card input[type="email"].is-invalid,
.registration-card input[type="tel"].is-invalid,
.registration-card input[type="password"].is-invalid,
.registration-card textarea.is-invalid,
.registration-card select.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control-modern.is-valid,
.registration-card input[type="text"].is-valid,
.registration-card input[type="email"].is-valid,
.registration-card input[type="tel"].is-valid,
.registration-card input[type="password"].is-valid,
.registration-card textarea.is-valid,
.registration-card select.is-valid {
    border-color: #28a745;
    background: #f8fff8;
}

.invalid-feedback-modern {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.valid-feedback-modern {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.badge-online {
    background: #28a745;
    color: white;
}

.badge-venue {
    background: #007bff;
    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: 6px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.status-success {
    background: #d4edda;
    border-color: #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.status-rejected {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.status-waitlist {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.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-success .status-icon {
    background: #28a745;
    color: white;
}

.status-pending .status-icon {
    background: #ffc107;
    color: #212529;
}

.status-rejected .status-icon {
    background: #dc3545;
    color: white;
}

.status-waitlist .status-icon {
    background: #17a2b8;
    color: white;
}

.status-content {
    flex: 1;
}

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

.status-message {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}

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

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

.registration-actions .btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }

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

    .event-meta-item {
        justify-content: center;
    }

    .event-badges {
        justify-content: center;
    }

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

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

    .stat-number {
        font-size: 1.75rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .event-banner img {
        height: 250px;
    }

    .search-container {
        padding: 1.5rem;
    }

    .search-input {
        margin-bottom: 1rem;
    }

    .filter-tabs {
        padding: 0.75rem;
    }

    .filter-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

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

    .event-title {
        font-size: 1.125rem;
    }

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

    .event-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .registration-card .card-header {
        padding: 1.25rem;
    }

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

    .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-hero-content {
        padding: 2rem 0;
    }

    .event-title {
        font-size: 1.75rem;
    }

    .event-info-card .card-body,
    .registration-card .card-body,
    .stats-card .card-body {
        padding: 1.25rem;
    }

    .events-hero-content {
        padding: 2rem 0;
    }

    /* Event card image aspect ratio is maintained via CSS aspect-ratio property */

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

    .event-title {
        font-size: 1rem;
    }

    .registration-hero-content {
        padding: 2rem 0;
    }

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

    .registration-card .card-header {
        padding: 1rem;
    }
}
