/* =========================================================
   DISCOVER BULGARIA - CUSTOM CASSIOPEIA THEME
   ========================================================= */

/* ---------- Color variables ---------- */

:root {
    --db-green: #0f5132;
    --db-green-dark: #083d26;
    --db-green-light: #198754;
    --db-gold: #d9a441;
    --db-gold-light: #f0c66d;
    --db-cream: #f8f6f0;
    --db-white: #ffffff;
    --db-text: #26332d;
    --db-muted: #6c757d;
    --db-border: #e4e8e5;
    --db-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --db-radius: 14px;
}


/* =========================================================
   GENERAL
   ========================================================= */

body {
    background: var(--db-cream);
    color: var(--db-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

/* Main page container */
.site-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Content links */
a {
    color: var(--db-green);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--db-gold);
}


/* =========================================================
   HEADER
   ========================================================= */

.container-header {
    background:
        linear-gradient(
            135deg,
            rgba(8, 61, 38, 0.98),
            rgba(15, 81, 50, 0.96)
        );

    background-image:
        linear-gradient(
            rgba(8, 61, 38, 0.96),
            rgba(15, 81, 50, 0.96)
        );

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    border-bottom: 4px solid var(--db-gold);
}

/* Site title */
.container-header .navbar-brand {
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: var(--db-white);
}

/* Site tagline */
.container-header .site-description {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.container-header .mod-menu {
    gap: 4px;
}

.container-header .mod-menu > li > a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
    color: var(--db-white);
    background: rgba(255, 255, 255, 0.12);
}

.container-header .mod-menu > li.active > a {
    box-shadow: inset 0 -3px 0 var(--db-gold);
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Article */
.com-content-article {
    background: var(--db-white);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 2rem;
    box-shadow: var(--db-shadow);
}

/* Article title */
.page-header h1,
.item-page h1 {
    color: var(--db-green-dark);
    font-weight: 800;
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Decorative line under headings */
.page-header h1::after,
.item-page h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 10px;
    background: linear-gradient(
        90deg,
        var(--db-gold),
        var(--db-gold-light)
    );
    border-radius: 10px;
}

.item-page h2 {
    color: var(--db-green);
    font-weight: 700;
    margin-top: 2rem;
}

.item-page h3 {
    color: var(--db-green-light);
}


/* =========================================================
   SIDEBAR MODULES
   ========================================================= */

.card {
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    box-shadow: var(--db-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--db-white);
}

.card-header {
    background: linear-gradient(
        135deg,
        var(--db-green),
        var(--db-green-light)
    );
    color: var(--db-white);
    border: none;
    font-weight: 700;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
}

.card-body {
    padding: 1.2rem;
}

/* Sidebar links */
.sidebar-right .mod-menu,
.sidebar-left .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-right .mod-menu > li > a,
.sidebar-left .mod-menu > li > a {
    display: block;
    padding: 0.7rem 0.9rem;
    margin: 3px 0;
    border-radius: 8px;
    color: var(--db-text);
    font-weight: 500;
    transition: all 0.25s ease;
}

.sidebar-right .mod-menu > li > a:hover,
.sidebar-left .mod-menu > li > a:hover {
    background: rgba(15, 81, 50, 0.08);
    color: var(--db-green);
    padding-left: 1.15rem;
}

.sidebar-right .mod-menu > li.active > a,
.sidebar-left .mod-menu > li.active > a {
    background: var(--db-green);
    color: var(--db-white);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--db-green),
        var(--db-green-light)
    );
    border: none;
    border-radius: 9px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(15, 81, 50, 0.2);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--db-green-dark),
        var(--db-green)
    );
    box-shadow: 0 8px 18px rgba(15, 81, 50, 0.3);
}


/* =========================================================
   IMAGES
   ========================================================= */

.item-page img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-page img:hover {
    transform: scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   PHOCA GALLERY
   ========================================================= */

.phocagallery-box-file {
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phocagallery-box-file:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   TABLES
   ========================================================= */

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--db-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--db-shadow);
}

table th {
    background: var(--db-green);
    color: var(--db-white);
    padding: 0.9rem;
}

table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--db-border);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(15, 81, 50, 0.04);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    border: 1px solid #d5ddd8;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--db-green-light);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}


/* =========================================================
   ALERTS / NOTICES
   ========================================================= */

.alert {
    border-radius: 10px;
    border: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: var(--db-green-dark);
    color: rgba(255, 255, 255, 0.82);
    border-top: 4px solid var(--db-gold);
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer a {
    color: var(--db-gold-light);
}

.footer a:hover {
    color: var(--db-white);
}


/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top-link {
    background: var(--db-green);
    color: var(--db-white);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top-link:hover {
    background: var(--db-gold);
    color: var(--db-white);
}


/* =========================================================
   HORIZONTAL SEPARATOR
   ========================================================= */

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--db-gold),
        transparent
    );
    margin: 2rem 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .container-header .navbar-brand {
        font-size: 1.35rem;
    }

    .com-content-article {
        padding: 1.3rem;
    }

    .page-header h1,
    .item-page h1 {
        font-size: 1.8rem;
    }

    main {
        padding-top: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}