/* Layout CSS - Layout and navigation styles */

/* Main layout structure */
.container-minimal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Navigation overrides for minimal design */
.navbar {
    min-height: 48px !important;
}

.navbar-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-brand .navbar-item {
    font-size: 1.25rem;
}

/* Grey on black navbar styling */
.navbar.is-black .navbar-item {
    color: #b5b5b5;  /* Light grey color */
}

.navbar.is-black .navbar-item:hover,
.navbar.is-black .navbar-item:focus {
    color: #ffffff;  /* White on hover */
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar.is-black .navbar-start > a.navbar-item.is-active,
.navbar.is-black .navbar-end > a.navbar-item.is-active {
    color: #aac8ff;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -2px 0 #aac8ff;
}

/* Mobile burger menu: match black navbar instead of Bulma's white default */
@media screen and (max-width: 1023px) {
    .navbar.is-black .navbar-menu {
        background-color: #0a0a0a;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }
    .navbar.is-black .navbar-menu .navbar-item {
        color: #b5b5b5;
    }
    .navbar.is-black .navbar-menu .navbar-item:hover,
    .navbar.is-black .navbar-menu .navbar-item:focus {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.navbar.is-black .navbar-dropdown {
    background-color: #0a0a0a;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.navbar.is-black .navbar-dropdown .navbar-item {
    color: #b5b5b5;
}

.navbar.is-black .navbar-dropdown .navbar-item:hover,
.navbar.is-black .navbar-dropdown .navbar-item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero adjustments */
.hero.is-fullheight-with-navbar {
    min-height: calc(100vh - 48px);
}

/* Sidebar layout */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
}

.sidebar {
    position: sticky;
    top: calc(48px + var(--spacing-lg));
    height: fit-content;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .container-minimal {
        padding: 0 var(--spacing-md);
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Page sections */
.page-header {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: var(--spacing-xl);
}

.page-content {
    min-height: 60vh;
}

/* Content sections */
.content-section {
    margin-bottom: var(--spacing-xxl);
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Breadcrumb minimal */
.breadcrumb-minimal {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.breadcrumb-minimal a {
    color: var(--color-text);
}

.breadcrumb-minimal .separator {
    color: #999;
}

/* Tab navigation */
.tabs-minimal {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: var(--spacing-lg);
}

.tabs-minimal .tab {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs-minimal .tab.is-active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

/* Custom web fonts - two different styles */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-light-latin.woff2') format('woff2'),
         url('../fonts/montserrat-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-light-cyrillic.woff2') format('woff2'),
         url('../fonts/montserrat-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-latin.woff2') format('woff2'),
         url('../fonts/playfair-display-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-cyrillic.woff2') format('woff2'),
         url('../fonts/playfair-display-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Landing page specific styles */
.landing-hero {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.landing-hero .hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.landing-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.landing-hero .hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
}

.landing-hero .landing-brand {
    position: relative;
    z-index: 3;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding-top: 1rem;
}

.landing-hero .landing-motto {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.landing-hero .landing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
}

.landing-hero .landing-button {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #aac8ff;
    transition: color 0.3s ease;
}

.landing-hero .heading-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.landing-hero .heading-link:hover {
    color: white;
    opacity: 0.8;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .landing-hero .landing-button:hover {
        color: #ffe680;
    }
}

@media (max-width: 768px) {
    .landing-hero .landing-motto {
        font-size: 2rem;
    }
    .landing-hero .landing-button {
        font-size: 1.25rem;
    }
}