/* ============================================
   Pravem Cookie Consent — Styles
   Matches Pravem dark theme (bg: #0A0A0C / #141418, accent: #F59E0B)
   ============================================ */

/* Overlay */
.pcc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pcc-overlay.pcc-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Banner (bottom bar) */
.pcc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #141418;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    padding: 24px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pcc-banner.pcc-visible {
    transform: translateY(0);
}

.pcc-banner-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.pcc-banner-text {
    flex: 1;
    min-width: 280px;
}

.pcc-banner-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.pcc-banner-text p {
    font-size: 0.88rem;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.5;
}

.pcc-banner-text a {
    color: #F59E0B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pcc-banner-text a:hover {
    color: #D97706;
}

/* Banner buttons */
.pcc-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.pcc-btn-accept {
    background: #F59E0B;
    color: #000;
}

.pcc-btn-accept:hover {
    background: #D97706;
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.pcc-btn-reject {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pcc-btn-reject:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.pcc-btn-settings {
    background: transparent;
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pcc-btn-settings:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
}

/* Settings panel (modal) */
.pcc-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 99999;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    padding: 36px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pcc-settings.pcc-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.pcc-settings h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.pcc-settings > p {
    font-size: 0.88rem;
    color: #9CA3AF;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Cookie category cards */
.pcc-category {
    background: #0D0D10;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.pcc-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.4), transparent);
}

.pcc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pcc-category-info {
    flex: 1;
}

.pcc-category-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px;
}

.pcc-category-info p {
    font-size: 0.82rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.45;
}

/* Toggle switch */
.pcc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pcc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pcc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #2D2D33;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.pcc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.pcc-toggle input:checked + .pcc-toggle-slider {
    background: #F59E0B;
}

.pcc-toggle input:checked + .pcc-toggle-slider::before {
    transform: translateX(20px);
}

.pcc-toggle input:disabled + .pcc-toggle-slider {
    background: #3B82F6;
    cursor: not-allowed;
    opacity: 0.7;
}

.pcc-toggle input:disabled:checked + .pcc-toggle-slider {
    background: #3B82F6;
}

/* Badge for "always on" */
.pcc-always-on {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Settings footer buttons */
.pcc-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pcc-settings-actions .pcc-btn {
    flex: 1;
    min-width: 120px;
}

/* Footer link */
.pcc-footer-link {
    cursor: pointer;
    color: #9CA3AF;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.85rem;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.pcc-footer-link:hover {
    color: #F59E0B;
}

/* Scrollbar in settings */
.pcc-settings::-webkit-scrollbar {
    width: 6px;
}

.pcc-settings::-webkit-scrollbar-track {
    background: transparent;
}

.pcc-settings::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 640px) {
    .pcc-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .pcc-banner-actions {
        justify-content: stretch;
    }

    .pcc-banner-actions .pcc-btn {
        flex: 1;
        text-align: center;
    }

    .pcc-settings {
        width: 95%;
        padding: 24px 20px;
        max-height: 90vh;
    }

    .pcc-settings-actions {
        flex-direction: column;
    }

    .pcc-settings-actions .pcc-btn {
        width: 100%;
    }
}
