/* style.css — Kameleo Studio WordPress Theme
   Wymagane przez WP: Theme Name, Version itd.
   ================================================
   Theme Name:  Kameleo Studio
   Theme URI:   https://example.com
   Author:      Tobiasz Małysa
   Description: Indywidualny motyw dla salonu tatuażu Kameleo Studio
   Version:     1.0.0
   Text Domain: kameleo
   ================================================ */

/* ============================================================
   RESET & BOX MODEL
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   ZMIENNE GLOBALNE (CSS Custom Properties)
   ============================================================ */
:root {
    /* Kolory */
    --color-gold:        #b38e50;   /* Antyczne złoto  — akcent główny  */
    --color-crimson:     #960019;   /* Karmin           — akcent alternatywny */
    --color-graphite:    #282a2f;   /* Grafitowy        — tło #1          */
    --color-dark:        #181b20;   /* Ciemny           — tło #2 (stopka) */
    --color-medium:      #2b2f33;   /* Średnio ciemny           — tło #3 (akcenty) */
    --color-black:       #0f1114;   /* Głęboka czerń    — tło bazowe      */

    /* Tekst */
    --color-text-main:   #e8e8e8;
    --color-text-muted:  #c0c0c0;
    --color-text-light:  #ffffff;

    /* Czcionki */
    --font-heading:      'Fira Sans Condensed', sans-serif;
    --font-body:         'Inter', sans-serif;

    /* Layout */
    --site-max-width:    1600px;
    --section-padding:   clamp(48px, 6vw, 96px);
    --gutter:            clamp(16px, 3vw, 48px);

    /* Cienie kart/sekcji */
    --card-shadow:       0 0 28px rgba(0, 0, 0, 0.7);
    --card-shadow-hover: 0 0 42px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-graphite);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html, body {
    height: auto !important;
    min-height: 0 !important;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c9a060;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}


main#main-content {
    min-height: 0 !important;
    height: auto !important;
}



/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    box-sizing: border-box;
    padding: 60px 20px 20px; /* górny padding na przycisk X */
}

/* Aktywny stan — JS dodaje klasę .is-open */
#lightbox-overlay.is-open {
    display: flex;
}

#lightbox-image {
    display: block;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    cursor: default;
    opacity: 0;
    /* width i height ustawia JS — nie definiuj tu max-width/max-height */
}

#lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#lightbox-loader {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body, sans-serif);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    #lightbox-image {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 80px);
    }
    #lightbox-close {
        top: 12px;
        right: 12px;
    }
}


/* ============================================================
   SCROLLBAR — Kameleo Studio
   Dodaj do style.css lub <style> w header.php
   ============================================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) var(--color-dark);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Track — ciemny z subtelną teksturą kreskową jak papier transferowy */
::-webkit-scrollbar-track {
    background: var(--color-dark);
    background-image: repeating-linear-gradient(
        180deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.015) 3px,
        rgba(255, 255, 255, 0.015) 4px
    );
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

/* Thumb — złoty gradient jak atrament w świetle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--color-gold)       0%,
        #c9a84c                50%,
        var(--color-crimson)  100%
    );
    border-radius: 0;           /* ostre krawędzie — nie okrągłe */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

/* Hover — bardziej karmin, jakby świeży tusz */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #d4a843               0%,
        var(--color-crimson) 60%,
        #6b0010              100%
    );
}

/* Aktywne kliknięcie — ciemniejszy karmin */
::-webkit-scrollbar-thumb:active {
    background: var(--color-crimson);
}

/* Narożnik gdzie spotykają się oba scrollbary */
::-webkit-scrollbar-corner {
    background: var(--color-dark);
}
