/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1f3a;
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: block;
}

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

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.5;
}

.cookie-text a {
    color: #84cc16;
    text-decoration: none;
}

.cookie-text a:hover {
    color: #65a30d;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cookie-buttons .btn-primary {
    background-color: #84cc16;
    color: #ffffff;
}

.cookie-buttons .btn-primary:hover {
    background-color: #65a30d;
}

.cookie-buttons .btn-secondary {
    background-color: transparent;
    color: #e2e8f0;
    border: 1px solid #4b5563;
}

.cookie-buttons .btn-secondary:hover {
    background-color: #4b5563;
    color: #ffffff;
}

.cookie-buttons .btn-tertiary {
    background-color: transparent;
    color: #84cc16;
    border: 1px solid #84cc16;
}

.cookie-buttons .btn-tertiary:hover {
    background-color: #84cc16;
    color: #ffffff;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.cookie-modal-header h3 {
    margin: 0;
    color: #1a1f3a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.close-modal:hover {
    color: #1a1f3a;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    margin: 0;
    color: #1a1f3a;
}

.cookie-category p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
}

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

input:checked + .slider {
    background-color: #84cc16;
}

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

input:disabled + .slider {
    background-color: #84cc16;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        min-width: 200px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-buttons label {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cookie-banner {
        padding: 0.75rem 0;
    }
    
    .cookie-content {
        padding: 0 16px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        min-width: auto;
        text-align: center;
    }
}