/* ============================================
   CANTEEN.CSS - Столова страница
   Color Palette: #141d2a (dark), #8186d5 (primary), 
                  #F5875D (accent), #6366f1/#8b5cf6 (gradients)
   ============================================
   ЗАБЕЛЕЖКА: Modal стиловете са премахнати.
   Използва се общия FilePreview.css за модала.
   ============================================ */

:root {
    --canteen-dark: #141d2a;
    --canteen-primary: #8186d5;
    --canteen-accent: #F5875D;
    --canteen-gradient-start: #6366f1;
    --canteen-gradient-end: #8b5cf6;
    --canteen-text: #ffffff;
    --canteen-text-muted: rgba(255, 255, 255, 0.7);
    --canteen-border: rgba(129, 134, 213, 0.3);
}

.canteen-page {
    background: #f8f9fc;
}

/* ============================================
   HERO SECTION - Dark Theme
   ============================================ */
.canteen-hero {
    background: linear-gradient(135deg, var(--canteen-dark) 0%, rgba(20, 29, 42, 0.95) 100%);
    color: var(--canteen-text);
    border-radius: 28px;
    padding: 48px;
    box-shadow:
            rgba(0, 0, 0, 0.09) 0px 2px 1px,
            rgba(0, 0, 0, 0.09) 0px 4px 2px,
            rgba(0, 0, 0, 0.09) 0px 8px 4px,
            rgba(0, 0, 0, 0.09) 0px 16px 8px;
    position: relative;
    overflow: hidden;
}

/* Decorative gradients */
.canteen-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 134, 213, 0.15), transparent 70%);
    pointer-events: none;
}

.canteen-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 135, 93, 0.1), transparent 70%);
    pointer-events: none;
}

.canteen-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.canteen-hero .lead {
    color: var(--canteen-text-muted);
    position: relative;
    z-index: 1;
}

/* Badges in hero */
.canteen-hero .badge {
    background: rgba(129, 134, 213, 0.2) !important;
    border: 1px solid rgba(129, 134, 213, 0.4);
    color: var(--canteen-text) !important;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.canteen-hero .badge:hover {
    background: rgba(129, 134, 213, 0.35) !important;
    border-color: rgba(129, 134, 213, 0.6);
}

/* ============================================
   HIGHLIGHT SECTION (в hero)
   ============================================ */
.canteen-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--canteen-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.canteen-highlight h3 {
    color: var(--canteen-text);
    font-weight: 700;
}

.canteen-highlight > p.text-muted {
    color: var(--canteen-text-muted) !important;
}

.canteen-highlight-card {
    background: rgba(129, 134, 213, 0.1);
    border-radius: 14px;
    padding: 18px;
    height: 100%;
    border: 1px solid rgba(129, 134, 213, 0.2);
    transition: all 0.3s ease;
}

.canteen-highlight-card:hover {
    background: rgba(129, 134, 213, 0.18);
    border-color: rgba(129, 134, 213, 0.4);
    transform: translateY(-3px);
}

.canteen-highlight-card i {
    color: var(--canteen-accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: block;
}

.canteen-highlight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--canteen-text);
    margin-bottom: 6px;
}

.canteen-highlight-card p.text-muted {
    color: var(--canteen-text-muted) !important;
    font-size: 0.85rem;
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */
.canteen-documents {
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.canteen-document-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    transition: all 0.3s ease;
}

.canteen-document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.canteen-document-title {
    font-weight: 700;
    color: var(--canteen-dark);
}

.canteen-document-card > div:first-child p.text-muted {
    color: #64748b !important;
    font-size: 0.9rem;
}

.canteen-document-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
    padding: 10px 14px;
    background: rgba(129, 134, 213, 0.08);
    border-radius: 10px;
}

.canteen-document-meta i {
    color: var(--canteen-primary);
}

.canteen-document-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Custom buttons for document cards */
.canteen-document-actions .btn-outline-dark {
    border-radius: 10px;
    border-color: var(--canteen-border);
    color: var(--canteen-dark);
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.canteen-document-actions .btn-outline-dark:hover {
    background: rgba(129, 134, 213, 0.1);
    border-color: var(--canteen-primary);
    color: var(--canteen-primary);
}

.canteen-document-actions .btn-dark {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--canteen-gradient-start), var(--canteen-gradient-end));
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}

.canteen-document-actions .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Empty state */
.canteen-document-card.text-center {
    padding: 48px 24px;
}

.canteen-document-card.text-center i {
    color: var(--canteen-primary);
    opacity: 0.5;
}

.canteen-document-card.text-center h4 {
    color: var(--canteen-dark);
}

/* ============================================
   BOTTOM WAVE SECTION
   ============================================ */
.canteen-bottom-wave {
    margin-top: 48px;
    background: var(--canteen-dark);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.canteen-bottom-wave::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(129, 134, 213, 0.15), transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(245, 135, 93, 0.1), transparent 50%);
    pointer-events: none;
}

.canteen-bottom-wave h3 {
    font-weight: 700;
    color: var(--canteen-text);
    position: relative;
    z-index: 1;
}

.canteen-bottom-wave p.text-muted {
    color: var(--canteen-text-muted) !important;
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .canteen-hero {
        padding: 36px;
        border-radius: 24px;
    }

    .canteen-hero h1 {
        font-size: 2rem;
    }

    .canteen-highlight {
        margin-top: 2rem;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .canteen-hero {
        padding: 28px;
        border-radius: 20px;
    }

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

    .canteen-highlight {
        padding: 20px;
    }

    .canteen-highlight-card {
        padding: 14px;
    }

    .canteen-document-card {
        padding: 20px;
    }

    .canteen-bottom-wave {
        padding: 32px 24px;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .canteen-hero {
        padding: 24px;
    }

    .canteen-hero .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .canteen-document-actions {
        flex-direction: column;
    }

    .canteen-document-actions .btn {
        width: 100%;
        justify-content: center;
    }
}