/* Стилове за privacy.php. Изнесени от inline <style>, за да се кешират. */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 1.5rem;
    /* Текстът беше #1A365D върху този градиент - тъмносиньо върху синьо,
       което е под достъпния праг за контраст. Сега е бял. */
    background: linear-gradient(135deg, #2E5AAC 0%, #4B8BF5 100%);
    color: var(--white);
    border-radius: 16px;
    margin-top: 2rem;
}

.emoji-row {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.25rem;
    line-height: 1;
}

.page-header h1 {
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.page-header .lead {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.page-header .lead-sub {
    font-size: 0.95rem;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy-section {
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 1.75rem;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.privacy-section h2 {
    color: #2563eb;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.privacy-section h3 {
    color: #374151;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.cookie-category,
.gdpr-category {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid transparent;
}

.cookie-category {
    background: #f6fbf8;
    border-left-color: #10b981;
}

.gdpr-category {
    background: #f5f9ff;
    border-left-color: #2563eb;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin: 2rem auto 3rem auto;
    max-width: 600px;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 6px;
}

.tab-button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tab-icon {
    font-size: 1rem;
    font-weight: 600;
}

.tab-subtitle {
    font-size: 0.75rem;
    line-height: 1.1;
    text-align: center;
}

.tab-button:hover {
    color: #374151;
    background: rgba(255,255,255,0.5);
}

.tab-button.active {
    background: var(--white);
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Contact Section Styles */
.contact-section {
    margin-top: 3rem;
    border-top: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    justify-content: space-between;
}

.contact-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-inline {
        justify-content: flex-start;
        min-width: auto;
    }
}

.browser-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.browser-item {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.browser-item h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.browser-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.warning-box h4 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
}

.warning-box p {
    margin: 0;
    color: #78350f;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-header {
        margin: 1rem 0.5rem 2rem 0.5rem !important;
        padding: 1.5rem 1rem !important;
    }

    .emoji-row {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .page-header .lead {
        font-size: 0.95rem;
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }

    .privacy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .browser-instructions {
        grid-template-columns: 1fr;
    }
}

/* Back button styling */
.back-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}


.back-button {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.back-button:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.back-button:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}


/* Make sure page content is not hidden behind fixed button */
body {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 80px;
}

/* Container adjustments for clean layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .back-button-container {
        top: 15px;
        left: 15px;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    body {
        padding-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Таблицата „Какви бисквитки използваме?" - коя, къде, за какво, колко време.
   На телефон таблица с 4 колони не се чете, затова под 640px всеки ред
   става карта, а заглавията на полетата идват от data-label. */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 1rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.cookie-table th {
    text-align: left;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
}

.cookie-table td {
    padding: 0.75rem 0.9rem;
    border-top: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.5;
}

.cookie-table code {
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.cookie-table small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Бисквитките на Google - отбелязани, защото не са на училището */
.cookie-table .cookie-third-party td:first-child {
    border-left: 3px solid #f59e0b;
}

@media (max-width: 640px) {
    .cookie-table,
    .cookie-table tbody,
    .cookie-table tr,
    .cookie-table td {
        display: block;
        width: 100%;
    }

    .cookie-table thead {
        display: none;
    }

    .cookie-table {
        background: transparent;
        box-shadow: none;
    }

    .cookie-table tr {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 0.75rem;
        box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
        overflow: hidden;
    }

    .cookie-table td {
        border-top: 1px solid #f1f5f9;
        padding: 0.55rem 0.9rem;
    }

    .cookie-table td:first-child {
        border-top: 0;
        background: #ecfdf5;
        font-weight: 600;
    }

    .cookie-table .cookie-third-party td:first-child {
        background: #fffbeb;
        border-left: 0;
    }

    .cookie-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 1px;
    }
}
