/* GAIUS - Gemensam CSS för alla sidor
 * Historiska Bilder & Almanackor
 * Copyright 2025 GAIVS
 */

/* CSS Variabler för enkel anpassning */
:root {
    --heading-font: 'Lato', 'Cormorant Garamond', serif;
    --body-font: 'Lato', sans-serif;
    --primary-green: #28a745;
    --dark-text: #000;
    --light-text: #f8f9fa;
    --vintage-bg-1: #f5efe6;
    --vintage-bg-2: #f7f3e9;
    /* --navbar-bg-scrolled: rgba(255, 255, 255, 0.95); */
    --navbar-border-scrolled: transparent;
    --main-bg-color: #e4d8c8;
}

/* ==========================================================================
   GRUNDLÄGGANDE STILAR
   ========================================================================== */

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    background-color: var(--main-bg-color);
}

h1, h2, h3, h4, h5, h6, .display-4, .product-title {
    font-family: var(--heading-font);
    font-weight: 100;
    letter-spacing: 1.5px;
}

/* Main heading always in uppercase */
#main-heading {
    text-transform: uppercase;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    /* transition: background-color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; */
    /* background-color: var(--main-bg-color); */
    border-bottom: 1px solid var(--navbar-border-scrolled);
}

/* Removed transparent-nav class styling since navbar is no longer transparent */

.navbar.scrolled {
    background-color: var(--main-bg-color);
    border-bottom: 1px solid var(--navbar-border-scrolled);
    /* backdrop-filter: blur(5px); */
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid var(--dark-text);
    padding: 0.5rem 1rem;
    color: var(--dark-text) !important;
}

.navbar.scrolled .navbar-brand {
    border-color: var(--dark-text);
    color: var(--vintage-bg-1) !important;
}

/* Navbar brand logo styling */
.navbar-brand2 img {
    height: 120px;
    width: auto;
    max-width: 150px;
}

.navbar-toggler {
    border: none;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigationsmeny */
#navbarResponsive {
    max-width: 250px;
    background: #e4d8c8ee;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: right;
    z-index: 1050;
}

#navbarResponsive .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    display: block;
}

#navbarResponsive .nav-link:hover {
    color: #007bff !important;
}

/* Varukorgssymbol */
.cart-link {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.cart-link:hover {
    color: #007bff !important;
    transform: scale(1.1);
}

.navbar.scrolled .cart-link {
    color: var(--dark-text) !important;
}

.navbar.scrolled .cart-link:hover {
    color: #007bff !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    height: 74vh;
    min-height: 350px;
    background-size: cover;
    background-position: bottom center;
}

/* Hero för startsidan */
.hero.start-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/gbgoco1_top.jpg');
}

/* Hero för Stockholm */
.hero.stockholm {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/gbgoco1_top.jpg');
}

/* Hero för Göteborg */
.hero.goteborg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/gbgoco1_top.jpg');
}

/* ==========================================================================
   PRODUKTKORT (för produktsidor)
   ========================================================================== */

.product-card {
    background-color: var(--vintage-bg-1);
}

.product-card.bg-pattern-2 {
    background-color: var(--vintage-bg-2);
}

.product-card img {
    max-height: 700px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.product-content {
    padding: 2rem;
    background: #e4d8c881;
    border-radius: .5rem;
    margin: 2rem;
}

@media (min-width: 768px) {
    .product-content {
        padding: 3rem;
    }
}

.product-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

.product-description {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

.product-details {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.product-content p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.product-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Produktkort bakgrundsbilder */
.product-card1 {
    background: url(https://dev.frontdata.se/gaius/start4/img/GBG__alm26_bg2.jpg);
    background-position: center;
    background-size: cover;
}

.product-card2 {
    background: url(https://dev.frontdata.se/gaius/start4/img/STHLM_alm26_bg3.jpg);
    background-position: center;
    background-size: cover;
}

.product-card3 {
    background: url(https://dev.frontdata.se/gaius/start4/img/GBG_Prod_bild2_poster.jpg);
    background-position: center;
    background-size: cover;
}

.product-card4 {
    background: url(https://dev.frontdata.se/gaius/start4/img/GBG_Prod_bild3_vykort.jpg);
    background-position: center;
    background-size: cover;
}

.product-card5 {
    background: url(https://dev.frontdata.se/gaius/start4/img/GBG_Prod_bild4_bok.jpg);
    background-position: center;
    background-size: cover;
}

.product-card6 {
    background: url(https://dev.frontdata.se/gaius/start4/img/STHLM_Prod_bild1_alm26_BG.jpg);
    background-position: center;
    background-size: cover;
}

.product-card7 {
    background: url(https://dev.frontdata.se/gaius/start4/img/STHLM_Prod_bild2_poster_BG.jpg);
    background-position: center;
    background-size: cover;
}

.product-card8 {
    background: url(https://dev.frontdata.se/gaius/start4/img/STHLM_Prod_bild3_vykort_BG.jpg);
    background-position: center;
    background-size: cover;
}

/* Produktkort bakgrundsfärger */
.prod-bg-text-color1 {
    background: #f2e9db9e;
}

.prod-bg-text-color2 {
    background: #e5dcd5a6;
}

.prod-bg-text-color3 {
    background: #dedace91;
}

.prod-bg-text-color4 {
    background: #f4efe99e;
}

.prodposs {
    text-align: center;
}

.img-fluid {
    max-height: 700px;
}

/* ==========================================================================
   KNAPPAR
   ========================================================================== */

.btn-buy {
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-buy:hover {
    background-color: #218838;
    color: white;
}

.btn-city {
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
}

.btn-city:hover {
    background-color: #218838;
    color: white;
    transform: scale(1.05);
}

/* ==========================================================================
   PRISER OCH TEXT
   ========================================================================== */

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    padding-left: .5rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--dark-text);
    padding-left: .5rem;
}

.published-since {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-text);
}

.besk-text {
    font-size: 1.2rem;
    color: var(--dark-text);
}

/* ==========================================================================
   CITY SELECTION CARDS (för startsidan)
   ========================================================================== */

.city-card {
    background-color: var(--vintage-bg-1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.city-card img {
    height: 300px;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.city-card-content {
    padding: 2rem;
    text-align: center;
}

.city-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.city-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: var(--main-bg-color);
}

/* ==========================================================================
   TILLGÄNGLIGHET
   ========================================================================== */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .city-title {
        font-size: 2rem;
    }
    
    .city-card-content {
        padding: 1.5rem;
    }
    
    .product-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
    }
    
    .city-card img {
        height: 250px;
    }
    
    .btn-city {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   SPECIALKLASSER
   ========================================================================== */

/* För att centrera innehåll */
.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* För transparens effekter */
.semi-transparent {
    background-color: rgba(228, 216, 200, 0.9);
}

/* För hover effekter */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* För smooth transitions */
.smooth-transition {
    transition: all 0.3s ease;
}
