/* Cookie Policy and GDPR Compliance Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 3px solid #2db094;
}

.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-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2db094;
}

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

.cookie-banner-text a {
    color: #2db094;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #37c8a9;
    text-decoration: none;
}

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

.cookie-btn {
    background: linear-gradient(135deg, #2db094, #37c8a9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.cookie-btn:hover {
    background: linear-gradient(135deg, #259d7f, #2fb396);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 176, 148, 0.4);
    color: white;
    text-decoration: none;
}

.cookie-btn.secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.cookie-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.cookie-btn.outline {
    background: transparent;
    border: 2px solid #2db094;
    color: #2db094;
}

.cookie-btn.outline:hover {
    background: #2db094;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 176, 148, 0.3);
}

/* Cookie Policy Modal */
.cookie-modal {
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99999 !important;
}

.cookie-modal-dialog {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-50px);
    opacity: 0;
    max-width: 800px;
}

.cookie-modal.show .cookie-modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.cookie-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 25px 30px;
    position: relative;
    flex-shrink: 0;
}

.cookie-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45,176,148,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cookie-modal-title {
    margin: 0;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.cookie-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: linear-gradient(135deg, #2db094, #37c8a9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(45, 176, 148, 0.2);
}

.cookie-close-btn:hover {
    background: linear-gradient(135deg, #259d7f, #2fb396);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
    color: white;
}

.cookie-close-btn:active {
    transform: rotate(90deg);
}


.cookie-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-section {
    margin-bottom: 30px;
}

.cookie-section:last-child {
    margin-bottom: 0;
}

.cookie-section h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2db094;
}

.cookie-section p {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cookie-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cookie-section li {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cookie-toggle-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2db094;
}

.cookie-toggle-info {
    flex: 1;
}

.cookie-toggle-info h4 {
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.cookie-toggle-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 20px;
}

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

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #2db094;
}

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #ecf0f1;
}

.cookie-modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-toggle-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-toggle {
        margin-left: 0;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text h4 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cookie-modal-title {
        font-size: 1.3rem;
    }
    
    .cookie-close-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 15px;
        right: 15px;
    }
}

/* Animation for modal entrance */
@keyframes cookieModalSlideIn {
    0% {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-modal.show .cookie-modal-dialog {
    animation: cookieModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cookie accepted state */
.cookie-banner.accepted {
    display: none;
}

/* Privacy notice */
.privacy-notice {
    background: linear-gradient(135deg, #f0fbf9 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2db094;
    margin: 20px 0;
}

.privacy-notice h4 {
    color: #2db094;
    margin-bottom: 10px;
    font-family: 'Lora', serif;
}

.privacy-notice p {
    margin: 0;
    color: #34495e;
    line-height: 1.6;
}