/* Cookie Consent Popup Styles - SociologiQ Website */

/* Cookie Consent Container */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: none;
    font-family: 'Arial', sans-serif;
    border-top: 3px solid #3498db;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie Content Layout */
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cookie Icon */
.cookie-icon {
    font-size: 30px;
    margin-right: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Cookie Message */
.cookie-message {
    flex: 1;
    min-width: 300px;
}

.cookie-message h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #3498db;
    font-weight: 600;
}

.cookie-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ecf0f1;
}

.cookie-message a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cookie-message a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Cookie Actions */
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.cookie-btn-decline {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cookie-btn-decline:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.cookie-btn-customize {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.cookie-btn-customize:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-message {
        min-width: auto;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-consent {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-message h4 {
        font-size: 16px;
    }
    
    .cookie-message p {
        font-size: 13px;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.cookie-settings-close:hover {
    color: #34495e;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
}

.cookie-category h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.cookie-category p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #bdc3c7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #27ae60;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

.cookie-settings-actions {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}
