/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.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;
    color: #667eea;
    font-size: 1.3em;
}

.cookie-banner-text p {
    margin: 0 0 10px 0;
    color: #484848;
    line-height: 1.6;
    font-size: 0.95em;
}

.cookie-banner-text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #764ba2;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-secondary {
    background: #f5f5f5;
    color: #484848;
    border: 2px solid #e0e0e0;
}

.cookie-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #667eea;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.8em;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: #f5f5f5;
    color: #484848;
}

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

.cookie-settings-intro {
    margin-bottom: 30px;
    color: #484848;
    line-height: 1.7;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

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

.cookie-category-header h3 {
    margin: 0 0 5px 0;
    color: #484848;
    font-size: 1.2em;
}

.cookie-category-header p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.cookie-category-desc {
    margin: 10px 0 0 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.9em;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

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

.cookie-toggle input:checked + .cookie-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.cookie-settings-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-privacy-link {
    color: #667eea;
    text-decoration: none;
    margin-left: auto;
    font-weight: 500;
}

.cookie-privacy-link:hover {
    text-decoration: underline;
}

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

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

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

    .cookie-banner-text p {
        font-size: 0.9em;
    }

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

    .cookie-btn {
        width: 100%;
    }

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

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

    .cookie-settings-header h2 {
        font-size: 1.5em;
    }

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

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-toggle {
        align-self: flex-start;
    }

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

    .cookie-privacy-link {
        margin-left: 0;
        margin-top: 10px;
    }
}
