/* ==========================================================================
   GeneratorZabaw.pl - Main Stylesheet (Modern, Light Theme with Violet-Blue Accents)
   ========================================================================== */

/* Zmienne CSS / Design System */
:root {
    --primary-color: #6c5ce7;      /* Główny fiolet */
    --primary-hover: #5b4bc4;
    --primary-light: #f3f0ff;
    --secondary-color: #0984e3;    /* Akcent niebieski */
    --secondary-hover: #0770c2;
    --text-color: #2d3436;         /* Ciemny tekst */
    --text-muted: #636e72;         /* Szary tekst pomocniczy */
    --bg-color: #ffffff;           /* Białe tło */
    --bg-alt: #f8f9fa;             /* Alternatywne szarawe tło */
    --border-color: #dfe6e9;       /* Kolor obramowania */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(108, 92, 231, 0.1), 0 10px 10px -5px rgba(108, 92, 231, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --max-width: 1200px;
}

/* Reset stylów */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Klasa kontenera */
.container, .header-container, .footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAWIGACJA
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition-fast);
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--primary-color);
}

.logo-domain {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Menu Toggle dla urządzeń mobilnych */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 9px;
    transition: all var(--transition-normal);
}

/* Animacja menu mobilnego */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Nawigacja główna */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.disabled {
    color: var(--text-muted);
    cursor: default;
    background: transparent;
    opacity: 0.75;
}

.badge-soon {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    background-color: var(--border-color);
    color: var(--text-muted);
    border-radius: 20px;
    margin-left: 6px;
    text-transform: uppercase;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page-content {
    flex-grow: 1;
    padding-bottom: 60px;
}

/* Sekcje AdSense */
.adsense-placeholder {
    max-width: 728px;
    margin: 30px auto;
    padding: 15px;
    background-color: var(--bg-alt);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.adsense-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ==========================================================================
   STRONA GŁÓWNA (INDEX) - ULEPSZENIA & SEO
   ========================================================================== */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.12) 0%, rgba(255, 255, 255, 0) 70%), var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--text-color) 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 500;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 40px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}


.hero-stat-item strong {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Siatka kafelków */
.tiles-section {
    padding: 80px 20px 60px;
}

.tiles-heading {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.25rem;
}

.tiles-subheading {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 45px;
    font-size: 1.1rem;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Pojedynczy kafel */
.tile-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 270px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.3);
}

.tile-icon {
    font-size: 2.75rem;
    margin-bottom: 18px;
}

.tile-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.tile-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
    line-height: 1.6;
}

.tile-card.disabled {
    background-color: var(--bg-alt);
    border-color: var(--border-color);
    opacity: 0.85;
}

.tile-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.tile-card.disabled .tile-icon {
    filter: grayscale(1);
    opacity: 0.7;
}

.tile-badge-soon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Sekcja SEO & O nas */
.seo-section {
    background-color: var(--bg-alt);
    padding: 80px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.seo-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.seo-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.seo-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-box h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .seo-features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STRONA KALAMBURY (GENERATOR)
   ========================================================================== */

.generator-header {
    text-align: center;
    padding: 50px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.generator-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.generator-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Panel kategorii */
.categories-container {
    max-width: 1000px;
    margin: 0 auto 35px;
    padding: 0 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

.btn-category {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 8px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.btn-category .category-icon {
    font-size: 1.4rem;
    transition: transform var(--transition-fast);
}

.btn-category:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-category:hover .category-icon {
    transform: scale(1.15);
}

.btn-category.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}


/* Centralna karta generatora */
.generator-wrapper {
    max-width: 650px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.generator-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.word-display-box {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.word-category-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.word-display {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-color);
    transition: opacity 0.25s ease, transform 0.25s ease;
    word-break: break-word;
    max-width: 100%;
}

.word-display.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.word-display.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Kontroler Licznika Czasu */
.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.timer-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}


.btn-timer-preset {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-timer-preset:hover, .btn-timer-preset.active {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timer-display-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-circle {
    position: relative;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    transition: all var(--transition-fast);
}

.timer-circle.finished {
    font-size: 1.1rem;
}

.timer-circle.running {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2);
}

.timer-circle.warning {
    border-color: #ff7675;
    color: #ff7675;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.btn-timer-action {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-timer-action:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Opcje Trudności */
.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-difficulty {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-difficulty.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-difficulty[data-difficulty="latwe"].active {
    background-color: #00b894;
    border-color: #00b894;
}

.btn-difficulty[data-difficulty="srednie"].active {
    background-color: #fdcb6e;
    border-color: #fdcb6e;
    color: #2d3436;
}

.btn-difficulty[data-difficulty="trudne"].active {
    background-color: #d63031;
    border-color: #d63031;
}

.word-labels-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}


.word-difficulty-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 20px;
}


/* Przyciski Akcji Generowania */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.draw-btn-wrapper {
    width: 100%;
}

.btn-draw {
    width: 100%;
    padding: 16px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-draw:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Tryb pełnoekranowy */
.generator-card:fullscreen {
    padding: 10% 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    border: none;
}

.generator-card:fullscreen .word-display-box {
    margin-bottom: 60px;
}

.generator-card:fullscreen .word-display {
    font-size: 5rem;
}

.generator-card:fullscreen .word-category-label {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.generator-card:fullscreen .action-buttons {
    width: 100%;
    max-width: 500px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.faq-heading {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color var(--transition-fast);
    outline: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform var(--transition-normal);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Dowolna odpowiednio duża wartość */
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-link-disabled {
    color: #b2bec3;
    font-size: 0.9rem;
    cursor: not-allowed;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toast do powiadomień */
.toast-notification {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
    z-index: 2000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Weryfikacja wieku (Age Gate overlay) */
.age-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 100;
    transition: opacity var(--transition-normal);
}

.age-gate-content {
    max-width: 400px;
    margin: 0 auto;
}

.age-gate-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.age-gate-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.age-gate-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.age-gate-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.generator-card:fullscreen .age-gate-overlay {
    background-color: var(--bg-color);
}


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    
    .about-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Menu mobilne */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-color);
        padding: 30px 20px;
        border-top: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        z-index: 999;
        display: block;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .badge-soon {
        margin-left: auto;
    }
    
    /* Hero */
    .hero {
        padding: 50px 15px 40px;
    }
    
    .hero-description {
        margin-bottom: 25px;
    }

    
    /* Siatka kafelków */
    .tiles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Generator */
    .generator-header h1 {
        font-size: 2rem;
    }
    
    .word-display {
        font-size: 1.75rem;
    }
    
    .generator-card {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
