/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.6;
    color: #ecf0f1;
    font-size: 0.95rem;
}

.cookie-banner-text a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner-text a:hover {
    color: #5dade2;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-primary {
    background-color: #27ae60;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-secondary:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: #3498db;
    color: white;
}

.cookie-btn-settings:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    padding: 20px;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 25px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.cookie-settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-settings-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

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

.cookie-category-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.cookie-toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.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: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #27ae60;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-settings-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-banner-content {
        gap: 15px;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .cookie-settings-content {
        margin: 10px;
        max-height: 95vh;
    }

    .cookie-settings-header {
        padding: 20px;
    }

    .cookie-settings-header h2 {
        font-size: 1.3rem;
        padding-right: 40px;
    }

    .cookie-settings-body {
        padding: 20px;
    }

    .cookie-category {
        padding: 15px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* Privacy Policy Link in Footer */
.privacy-footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
}

.privacy-footer a {
    color: #7f8c8d;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.privacy-footer a:hover {
    color: #2c3e50;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
