/* --- MOTYW: NOVA TECH GLASS (Futurystyczny, Czysty, Premium) --- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --text-main: #171717;
    --text-muted: #737373;
    --primary: #000000;
    --primary-light: #e5e5e5;
    --accent: #404040;
    --border: #e5e5e5;
    --radius: 4px;
    --shadow: 0 15px 30px rgba(0,0,0,0.05);
    --gradient-main: linear-gradient(135deg, #6366f1, #a855f7);
}

/* --- 1. RESET I BAZA --- */
body {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body);
    line-height: 1.6;
    /* Abstrakcyjne tło */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Nadpisanie kontenera, aby był szerszy i miał oddech */
.container-center {
    max-width: 1400px;
    padding: 0 40px;
}

/* --- 2. NAWIGACJA (FLOATING GLASS) --- */
.site-nav {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 40px;
}

.nav-inner {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 2.1 LOGO (MODERN APP ICON) --- */
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-box:hover { transform: scale(1.02); }

/* Stylizujemy literkę z PHP jako ikonę aplikacji */
.site-nav .logo-box .logo-icon {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    text-shadow: 0 2px 0 rgba(0,0,0,0.1);
}
.logo-icon i {
    color: #ffffff !important;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: lowercase; /* Styl startupowy */
    font-size: 1.8rem !important;
    color: #fff !important;
    letter-spacing: -1px;
}
.logo-text::after {
    content: '.';
    color: var(--accent);
}

/* --- 2.2 MENU --- */
.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 50px;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --- 3. SEKCJA HERO (KAFELKI) --- */

.tiles-dynamic-wrapper {
    gap: 24px !important;
    margin-bottom: 60px !important;
}

.tile-item {
    background: var(--bg-card) !important;
    border-radius: var(--radius-xl) !important;
    border: var(--border-glass) !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tile-item img {
    border-radius: var(--radius-xl) !important;
    transition: transform 0.6s !important;
}

.tile-item:hover img {
    transform: scale(1.1);
}

/* Overlay - Glassmorphism */
.tile-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 80%, transparent 100%) !important;
    padding: 30px !important;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}

.tile-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Przycisk w Hero */
.tile-overlay .btn-read-full {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
}
.tile-overlay .btn-read-full:hover {
    background: #fff !important;
    color: var(--bg-body) !important;
}

/* --- 4. LISTA ARTYKUŁÓW --- */

.content-layout {
    display: grid !important;
    gap: 40px !important;
}

/* Grid layout dla kart */
.list-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px !important;
}

/* Karta Artykułu */
.card {
    background: var(--bg-glass) !important;
    border: var(--border-glass) !important;
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    height: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-glow);
}

.card-img-wrapper {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    height: 220px !important;
}

.card-body {
    background: transparent !important;
    padding: 25px !important;
    display: flex; flex-direction: column; flex-grow: 1;
}

.card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Badge Sponsorowany */
.on-img-badge, .sponsored-badge {
    background: var(--gradient-main) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    text-transform: uppercase;
}

/* Przycisk w karcie - Tekstowy */
.card .btn-read-full {
    background: transparent !important;
    color: var(--primary) !important;
    padding: 0 !important;
    margin-top: auto;
    text-align: left;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none !important;
    display: flex; align-items: center; gap: 8px;
}
.card .btn-read-full::after { content: '→'; transition: transform 0.2s; }
.card .btn-read-full:hover::after { transform: translateX(5px); }
.card .btn-read-full:hover { background: transparent !important; color: var(--accent) !important; }

/* --- 5. SIDEBAR --- */
#sidebar {
    background: var(--bg-glass) !important;
    border: var(--border-glass) !important;
    border-radius: var(--radius-md);
    padding: 30px !important;
    backdrop-filter: blur(10px);
}

#sidebar h3 {
    color: #000000 !important;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#sidebar-links a.footer-link {
    color: var(--text-muted) !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed rgba(255,255,255,0.1) !important;
    display: block; transition: 0.2s;
}
#sidebar-links a.footer-link:hover {
    color: var(--accent) !important;
    padding-left: 5px !important;
}

/* --- 6. KATALOG (DIRECTORY) --- */
.directory-card {
    background: var(--bg-glass) !important;
    border: var(--border-glass) !important;
    border-radius: var(--radius-md);
    padding: 30px 20px !important;
    text-align: center;
    transition: 0.3s;
}
.directory-card:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--accent) !important;
}

.directory-icon {
    font-size: 2.5rem !important;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin-left: auto; margin-right: auto;
    color: var(--primary) !important;
}

.directory-title { color: #fff !important; font-family: var(--font-heading); }
.directory-btn {
    background: transparent !important;
    border: 1px solid var(--text-muted) !important;
    color: var(--text-muted) !important;
    border-radius: 50px;
    margin-top: 15px;
}
.directory-card:hover .directory-btn {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* --- 7. ARTYKUŁ (SINGLE) --- */
#view-post article {
    background: transparent; /* Czysty tekst na tle strony */
}
#view-post h1 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 3rem !important;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 30px;
}
#p-body {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main) !important;
    font-size: 1.15rem !important;
    line-height: 1.8;
}

/* --- 8. STOPKA --- */
.site-footer {
    background: #020617 !important;
    margin-top: 80px !important;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-heading {
    color: #fff !important;
    font-family: var(--font-heading);
}
.footer-menu a:hover { color: var(--primary) !important; }

/* --- 9. MOBILE --- */
@media (max-width: 900px) {
    .content-layout.has-sidebar { grid-template-columns: 1fr !important; }
    .list-grid { grid-template-columns: 1fr; } /* Jedna kolumna na mobilu */
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 20px; }
    .nav-menu {
        background: #0f172a;
        position: fixed; width: 100%; top: 90px; left: 0;
        flex-direction: column; padding: 20px; display: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active { display: flex; }
    .logo-text { font-size: 1.4rem !important; }
    
    #view-post h1 { font-size: 2rem !important; }
}