/**
 * MyTask - Frontpage Styles
 * Public-facing pages (no login required)
 */

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    min-height: 400px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    position: relative;
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: #fff;
}

.hero-overlay h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.hero-placeholder h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-placeholder p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-controls .dot.active {
    background: #fff;
}

/* ========== Event Cards ========== */
.event-cards-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #003366;
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.event-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.event-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

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

.event-card .event-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.event-card .event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.event-card .progress {
    height: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-card .progress-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Countdown */
.countdown-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== Calendar Section ========== */
.calendar-section {
    padding: 3rem 0;
}

.calendar-section .fc {
    font-size: 0.9rem;
}

.calendar-section .fc-toolbar-title {
    font-size: 1.25rem !important;
    color: #003366;
}

/* ========== News Section ========== */
.news-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.news-item {
    border-left: 3px solid #003366;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: border-color 0.2s;
}

.news-item:hover {
    border-left-color: #0d6efd;
}

.news-item .news-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.news-item .news-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-item .news-excerpt {
    font-size: 0.9rem;
    color: #555;
}

/* ========== Public Event Page ========== */
.event-hero {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    padding: 3rem 0;
}

.event-hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

.event-info-card {
    border-left: 4px solid #003366;
}

.ajk-list .ajk-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.ajk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
    .hero-slide img,
    .hero-placeholder {
        min-height: 250px;
        height: 250px;
    }

    .hero-placeholder h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .event-card .card-img-top {
        height: 140px;
    }

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

@media (max-width: 575.98px) {
    .hero-overlay h2 {
        font-size: 1.25rem;
    }

    .event-cards-section,
    .calendar-section,
    .news-section {
        padding: 2rem 0;
    }
}
