/* ===============================
   🌟 VIEW EVENT PAGE STYLING
   Author: HUIT CareerFair
   =============================== */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fbfd;
    color: #333;
}

/* ====== Event Title ====== */
.event-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #0d6efd;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* ====== Event Status Banner ====== */
.event-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .event-status-banner i {
        font-size: 1.2rem;
    }

    .event-status-banner.active {
        background: linear-gradient(90deg, #d4f4dd, #aaf0c6);
        color: #087f23;
        border-left: 5px solid #28a745;
    }

    .event-status-banner.expired {
        background: linear-gradient(90deg, #ffe5e5, #ffd6d6);
        color: #c82333;
        border-left: 5px solid #dc3545;
    }

/* ====== Event Card ====== */
.event-card-custom {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
}

    .event-card-custom:hover {
        transform: translateY(-5px);
    }

/* ====== Event Banner ====== */
.event-banner-custom {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.placeholder-banner {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 12px;
    border: 2px dashed #ccc;
    text-align: center;
    flex-direction: column;
    font-size: 1rem;
}

/* ====== Info Section ====== */
.info-item {
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
}

    .info-item i {
        width: 25px;
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .info-item strong {
        margin-right: 5px;
    }

/* ====== Description Section ====== */
.event-description {
    margin-top: 40px;
}

    .event-description h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

.description-content {
    background: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 20px;
    line-height: 1.7;
    font-size: 1rem;
    color: #555;
}

    .description-content p {
        margin-bottom: 1rem;
    }

/* ====== Buttons ====== */
.action-btns {
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-detail {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.register-btn {
    background: linear-gradient(90deg, #0d6efd, #409eff);
    color: #fff;
    border: none;
}

    .register-btn:hover {
        background: linear-gradient(90deg, #0b5ed7, #2977ff);
        transform: translateY(-2px);
    }

.register-btn-disabled {
    background-color: #cce5ff;
    color: #555;
    border: none;
    cursor: not-allowed;
}

.login-btn {
    background-color: #ffc107;
    color: #333;
    border: none;
}

    .login-btn:hover {
        background-color: #e0a800;
        transform: translateY(-2px);
    }

.back-btn {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    color: #333;
}

    .back-btn:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
    }

.expired-notice {
    display: flex;
    align-items: center;
    color: #999;
    font-style: italic;
}

.admin-notice {
    display: flex;
    align-items: center;
    color: #6c757d;
}

/* ====== Modal ====== */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: none;
}

.modal-body h6 {
    font-weight: 600;
}

.modal-body p {
    color: #555;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .event-title {
        font-size: 1.6rem;
    }

    .event-card-custom {
        padding: 20px;
    }

    .description-content {
        font-size: 0.95rem;
    }

    .btn-detail {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .placeholder-banner {
        height: 180px;
    }
}
