/* Cookie Consent Banner & Management Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2D2D2D;
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #3A296D;
}

.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;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: white;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #765cc1;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #3A296D;
    color: white;
}

.cookie-btn-accept:hover {
    background: #765cc1;
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 1px solid #666;
}

.cookie-btn-settings:hover {
    background: #666;
    border-color: #999;
}

.cookie-btn-reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    background: #555;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    background: #3A296D;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.cookie-modal-close:hover {
    opacity: 0.7;
}

.cookie-modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-modal-intro {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 20px;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    background: #F8FAFC;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-category-header:hover {
    background: #F0F0F0;
}

.cookie-category-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-category-required {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle.active {
    background: #3A296D;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-category-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.cookie-category.expanded .cookie-category-content {
    max-height: 200px;
    padding: 15px 20px;
}

.cookie-category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #E9EAEB;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-btn-primary {
    background: #3A296D;
    color: white;
}

.cookie-modal-btn-primary:hover {
    background: #765cc1;
}

.cookie-modal-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-modal-btn-secondary:hover {
    background: #e5e5e5;
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.cookie-settings-link:hover {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .cookie-modal {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-modal-header {
        padding: 15px;
    }
    
    .cookie-modal-body {
        padding: 15px;
    }
    
    .cookie-modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .cookie-modal-title {
        font-size: 18px;
    }
}
