/* Cookie Consent Banner and Settings Modal */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 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.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent-color, #c9a96e);
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color, #c9a96e);
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-banner-text a {
    color: var(--accent-color, #c9a96e);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-banner-text a:hover {
    border-bottom-color: var(--accent-color, #c9a96e);
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cookie-btn-primary {
    background: var(--accent-color, #c9a96e);
    color: #1a1a1a;
}

.cookie-btn-primary:hover {
    background: #b8985d;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #555;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #777;
}

.cookie-btn-text {
    background: none;
    color: var(--accent-color, #c9a96e);
    border: none;
    text-decoration: underline;
    padding: 8px 12px;
    min-width: auto;
}

.cookie-btn-text:hover {
    color: #b8985d;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-category-header:hover {
    background: #f0f2f5;
}

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-category-essential .cookie-category-title::after {
    content: " (Required)";
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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.3s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--accent-color, #c9a96e);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

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

.cookie-category-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-category.expanded .cookie-category-content {
    padding: 20px;
    max-height: 200px;
}

.cookie-category-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.cookie-expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    color: #666;
    margin-left: 10px;
}

.cookie-category.expanded .cookie-expand-icon {
    transform: rotate(180deg);
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
    min-width: 120px;
}

.cookie-btn-save {
    background: var(--accent-color, #c9a96e);
    color: #1a1a1a;
}

.cookie-btn-save:hover {
    background: #b8985d;
}

.cookie-btn-accept-all {
    background: #28a745;
    color: white;
}

.cookie-btn-accept-all:hover {
    background: #218838;
}

.cookie-btn-reject-all {
    background: #dc3545;
    color: white;
}

.cookie-btn-reject-all:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        order: 3;
    }
    
    .cookie-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-category-header {
        padding: 15px;
    }
    
    .cookie-category.expanded .cookie-category-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h4 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .cookie-modal-header h3 {
        font-size: 20px;
    }
    
    .cookie-category-title {
        font-size: 16px;
    }
}

/* Animation for show/hide */
@keyframes slideUpBounce {
    0% {
        transform: translateY(100%);
    }
    70% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.cookie-banner.show {
    animation: slideUpBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #2d2d2d;
        color: white;
    }
    
    .cookie-modal-header {
        border-bottom-color: #444;
    }
    
    .cookie-modal-header h3 {
        color: white;
    }
    
    .cookie-modal-close {
        color: #ccc;
    }
    
    .cookie-modal-close:hover {
        background: #444;
        color: white;
    }
    
    .cookie-description {
        color: #ccc;
    }
    
    .cookie-category {
        border-color: #444;
    }
    
    .cookie-category-header {
        background: #1a1a1a;
    }
    
    .cookie-category-header:hover {
        background: #333;
    }
    
    .cookie-category-title {
        color: white;
    }
    
    .cookie-category-description {
        color: #ccc;
    }
    
    .cookie-modal-footer {
        border-top-color: #444;
    }
}