/* Cookie Banner Styles - dopasowane do designu fabianstadnik.pl */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    color: #ffffff;
    padding: 24px;
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid #1f2937;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.visible {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.cookie-text p {
    margin: 0;
    color: #9ca3af;
    font-weight: 400;
}

.cookie-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-text a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.cookie-btn.primary {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.cookie-btn.primary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.cookie-btn.secondary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.cookie-btn.secondary:hover {
    background: rgba(55, 65, 81, 0.3);
    color: #ffffff;
    border-color: #4b5563;
    transform: translateY(-1px);
}

.cookie-btn.settings {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cookie-btn.settings:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.visible {
    display: flex;
    opacity: 1;
}

.cookie-modal-content {
    background: #111111;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal.visible .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal h2 {
    margin: 0 0 24px 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.2);
    transition: border-color 0.2s ease;
}

.cookie-category:hover {
    border-color: #374151;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.cookie-toggle.active {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1f2937;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1f2937;
}

/* Cookie Settings Button (floating) */
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid #1f2937;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
}

.cookie-settings-btn.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.cookie-settings-btn:hover {
    background: rgba(10, 10, 10, 0.95);
    border-color: #374151;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cookie-settings-btn:active {
    transform: scale(0.95);
}

/* Tooltip dla settings button */
.cookie-settings-btn::before {
    content: 'Ustawienia cookies';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid #1f2937;
    backdrop-filter: blur(8px);
}

.cookie-settings-btn:hover::before {
    opacity: 1;
}

/* Animacja dla cookie icon */
.cookie-settings-btn .cookie-icon {
    animation: cookieFloat 3s ease-in-out infinite;
}

@keyframes cookieFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: left;
    }

    .cookie-text {
        order: 1;
    }

    .cookie-text h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .cookie-text p {
        font-size: 13px;
        line-height: 1.5;
    }

    .cookie-buttons {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 4px;
    }

    .cookie-btn {
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cookie-btn.settings {
        grid-column: 1 / -1;
        order: 3;
        margin-top: 4px;
    }

    .cookie-modal {
        padding: 12px;
    }

    .cookie-modal-content {
        padding: 20px;
        border-radius: 12px;
        margin: 0;
    }

    .cookie-modal h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cookie-category {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .cookie-category-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .cookie-category h3 {
        font-size: 15px;
    }

    .cookie-category p {
        font-size: 13px;
        margin-top: 8px;
    }

    .cookie-modal-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }

    .cookie-modal-buttons .cookie-btn {
        width: 100%;
        min-height: 48px;
    }

    .cookie-settings-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .cookie-settings-btn::before {
        right: 58px;
        font-size: 11px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 14px 12px;
    }
    
    .cookie-content {
        gap: 14px;
    }

    .cookie-text h3 {
        font-size: 15px;
    }

    .cookie-text p {
        font-size: 12px;
    }
    
    .cookie-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .cookie-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 40px;
        border-radius: 6px;
    }

    .cookie-btn.settings {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .cookie-modal-content {
        padding: 16px;
        border-radius: 10px;
    }

    .cookie-modal h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .cookie-category {
        padding: 12px;
        margin-bottom: 12px;
    }

    .cookie-category h3 {
        font-size: 14px;
    }

    .cookie-category p {
        font-size: 12px;
    }

    .cookie-toggle {
        width: 42px;
        height: 22px;
    }

    .cookie-toggle::after {
        width: 18px;
        height: 18px;
        top: 2px;
        left: 2px;
    }

    .cookie-toggle.active::after {
        transform: translateX(20px);
    }

    .cookie-settings-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        bottom: 14px;
        right: 14px;
    }
}