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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #090d16;
    --bg-card: #111827;
    --border: #1f2937;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --green: #10b981;
    --amber: #f59e0b;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 400px);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    padding-bottom: 60px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

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

.subtitle {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-content {
    min-height: 60vh;
}

.welcome-box {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(31, 41, 55, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.welcome-box h2 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.welcome-box p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Luksusowa Tabela (AI Overviews Bait) */
.comparison-table-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.comparison-table-section h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.premium-table th {
    background: rgba(31, 41, 55, 0.6);
    color: #fff;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.premium-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.premium-table tr:hover {
    background: rgba(31, 41, 55, 0.2);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
    padding: 12px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.letter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.articles-index {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.letter-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.group-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.group-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.group-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

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

/* Pojedyncze pojęcie */
.article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.actions-panel {
    display: flex;
    gap: 10px;
}

.btn {
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* Atomic Answer (AI Overviews Bait) */
.atomic-answer {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.atomic-answer p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #e5e7eb;
}

.article-body {
    font-size: 15.5px;
    line-height: 1.8;
    color: #d1d5db;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body h2 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 12px;
}

/* FAQ Accordion (NavBoost Dwell Time) */
.faq-accordion-section {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.faq-accordion-section h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.accordion-item {
    border: 1px solid var(--border);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: rgba(31, 41, 55, 0.4);
    border: none;
    color: #fff;
    text-align: left;
    padding: 15px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: rgba(17, 24, 39, 0.2);
}

.accordion-content p {
    padding: 15px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Bibliografia E-E-A-T */
.bibliography-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.bibliography-section h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.bibliography-section ul {
    list-style: none;
}

.bibliography-section li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.bibliography-section li::before {
    content: "•";
    color: var(--amber);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.bib-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.bib-link:hover {
    color: var(--primary-hover);
}

.footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Zoptymalizowany styl Print CSS dla pobierania PDF */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .header, .back-link, .actions-panel, .faq-accordion-section, .footer {
        display: none !important;
    }
    .article {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .bib-link {
        color: #000;
        text-decoration: none;
    }
}
