/* --- themes/base.css --- */

/* SZKIELET I STYLE BAZOWE */

/* Reset i Fonty */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s ease;
}

.container-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* LOGO SECTION */
.logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NAWIGACJA */
.site-nav {
    background: #0f172a;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    opacity: 0.8;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* GRID & CARDS */
.grid-3 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 15px;
    margin: 25px 0;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tile,
.card,
.btn-read,
.logo-icon,
.site-nav,
article,
aside,
img {
    border-radius: 0 !important;
}

/* DOMYŚLNY WYGLĄD KAFELKA (IMAGE OVERLAY) */
.tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    height: 100%;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: 0.4s;
}

.tile:hover img {
    opacity: 0.8;
    transform: scale(1.03);
}

.tile-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    /* Subtelny gradient od dołu */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    color: white;
}

.tile-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* LAYOUT - SIDEBAR */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

/* DOMYŚLNY WYGLĄD KARTY */
.card {
    position: relative;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    height: 320px;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: 0.4s;
}

.card:hover img {
    opacity: 0.9;
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    /* Subtelny gradient od dołu */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-body h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #fff !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* PRZYCISKI */
.btn-read {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.btn-read:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 950px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tile-big {
        grid-row: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #0f172a;
        padding: 20px;
        gap: 15px;
        border-bottom: 3px solid var(--primary);
    }

    .nav-menu.active {
        display: flex;
    }
}