/* ================ COOKIE CONSENT STYLES ================ */
/* Wspólny plik stylów dla cookie consent na całej stronie cyberpath.pl */

/* Cookie Overlay - backdrop dla szczegółowych ustawień */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 15px;
    overflow-y: auto;
    box-sizing: border-box;
}

.cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cookie Banner - lewy dolny róg */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid #39FF15;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 420px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(57, 255, 21, 0.15);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cookie Consent Container - szczegółowe ustawienia */
.cookie-consent {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid #39FF15;
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(57, 255, 21, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-overlay.active .cookie-consent {
    transform: scale(1);
}

/* Cookie Header */
.cookie-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cookie-icon {
    width: 45px;
    height: 45px;
    margin-right: 1rem;
    background: linear-gradient(135deg, #39FF15, #2acc00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(57, 255, 21, 0.3);
    font-size: 24px;
}

.cookie-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.cookie-consent .cookie-header-wrapper {
    display: block;
}

.cookie-consent .cookie-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    font-size: 32px;
}

/* Cookie Title */
.cookie-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #39FF15;
    margin: 0;
    line-height: 1.2;
}

.cookie-consent .cookie-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Cookie Description */
.cookie-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
    margin: 0.8rem 0;
}

.cookie-consent .cookie-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.cookie-description a {
    color: #39FF15;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-description a:hover {
    color: #fff;
}

/* Settings Link */
.cookie-settings-link {
    text-align: center;
    margin: 0.8rem 0;
}

.cookie-settings-toggle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #39FF15;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-settings-toggle:hover {
    color: #fff;
}

/* Cookie Settings */
.cookie-settings {
    margin: 1.5rem 0;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(57, 255, 21, 0.3);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #39FF15;
    margin: 0;
}

.cookie-category-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #39FF15;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 1rem;
}

.cookie-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex: 1;
}

.cookie-btn-accept,
.cookie-btn-save {
    background: #39FF15;
    color: #121212;
    transform: translateX(5px);
    box-shadow: -4px 4px 0 rgba(57, 255, 21, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    transform: translateX(-5px);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .cookie-btn-accept:hover,
    .cookie-btn-save:hover {
        transform: translateX(10px);
        box-shadow: -6px 6px 0 rgba(57, 255, 21, 0.4);
    }

    .cookie-btn-decline:hover {
        transform: translateX(-10px);
        box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cookie-overlay {
        padding: 10px;
    }

    .cookie-banner {
        bottom: 15px;
        left: 15px;
        max-width: calc(100% - 30px);
        padding: 1.2rem;
    }

    .cookie-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        margin-right: 0.8rem;
    }

    .cookie-title {
        font-size: 1.4rem;
    }

    .cookie-description {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    .cookie-settings-link {
        margin: 0.5rem 0;
    }

    .cookie-consent {
        padding: 1.5rem 1rem;
        max-height: 85vh;
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .cookie-consent .cookie-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 1rem;
    }

    .cookie-consent .cookie-title {
        font-size: 1.75rem;
    }

    .cookie-consent .cookie-description {
        font-size: 0.95rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-category-title {
        font-size: 1.1rem;
    }

    .cookie-category-description {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        flex-direction: row;
        gap: 0.6rem;
    }

    .cookie-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cookie-btn-accept,
    .cookie-btn-save {
        transform: translateX(5px);
        box-shadow: -4px 4px 0 rgba(57, 255, 21, 0.4);
    }

    .cookie-btn-decline {
        transform: translateX(-5px);
        box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.15);
    }

    /* Ustawienia - przyciski pionowo na mobile */
    .cookie-consent .cookie-buttons {
        flex-direction: column;
    }

    .cookie-consent .cookie-btn {
        width: 100%;
        transform: translateX(0);
        box-shadow: -4px 4px 0 rgba(57, 255, 21, 0.3);
    }

    .cookie-consent .cookie-btn-decline {
        box-shadow: -4px 4px 0 rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .cookie-title {
        font-size: 1.25rem;
    }

    .cookie-description {
        font-size: 0.8rem;
    }

    .cookie-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}