/**
 * Cookie Consent Styles for CugetLiber.ro
 * GDPR and Google Consent Mode v2 compliant
 */

/* Banner Container */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#cookie-consent-banner .cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#cookie-consent-banner .cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

#cookie-consent-banner .cookie-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#cookie-consent-banner .cookie-banner-title svg {
    width: 24px;
    height: 24px;
}

#cookie-consent-banner .cookie-banner-text {
    font-size: 14px;
    line-height: 1.5;
    color: #b8b8b8;
    margin: 0;
}

#cookie-consent-banner .cookie-banner-text a {
    color: #64b5f6;
    text-decoration: underline;
}

#cookie-consent-banner .cookie-banner-text a:hover {
    color: #90caf9;
}

/* Banner Buttons */
#cookie-consent-banner .cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#cookie-consent-banner .cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#cookie-consent-banner .cookie-btn-accept {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
}

#cookie-consent-banner .cookie-btn-accept:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

#cookie-consent-banner .cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 2px solid #555;
}

#cookie-consent-banner .cookie-btn-reject:hover {
    border-color: #888;
    background: rgba(255, 255, 255, 0.05);
}

#cookie-consent-banner .cookie-btn-customize {
    background: transparent;
    color: #64b5f6;
    border: 2px solid #64b5f6;
}

#cookie-consent-banner .cookie-btn-customize:hover {
    background: rgba(100, 181, 246, 0.1);
}

/* Modal Overlay */
#cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: none;
    backdrop-filter: blur(3px);
}

/* Modal Container */
#cookie-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000001;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#cookie-consent-modal .cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

#cookie-consent-modal .cookie-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding-right: 40px;
}

#cookie-consent-modal .cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#cookie-consent-modal .cookie-modal-close:hover {
    background: #e0e0e0;
}

#cookie-consent-modal .cookie-modal-close svg {
    width: 16px;
    height: 16px;
    color: #666;
}

#cookie-consent-modal .cookie-modal-body {
    padding: 24px;
}

#cookie-consent-modal .cookie-modal-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Cookie Categories */
#cookie-consent-modal .cookie-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

#cookie-consent-modal .cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#cookie-consent-modal .cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

#cookie-consent-modal .cookie-category-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

#cookie-consent-modal .cookie-category-badge.required {
    background: #fff3e0;
    color: #f57c00;
}

#cookie-consent-modal .cookie-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
#cookie-consent-modal .cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

#cookie-consent-modal .cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookie-consent-modal .cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

#cookie-consent-modal .cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    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-consent-modal .cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #4CAF50;
}

#cookie-consent-modal .cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

#cookie-consent-modal .cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #4CAF50;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal Footer */
#cookie-consent-modal .cookie-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #eee;
}

#cookie-consent-modal .cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cookie-consent-modal .cookie-modal-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

#cookie-consent-modal .cookie-modal-btn-secondary:hover {
    background: #e0e0e0;
}

#cookie-consent-modal .cookie-modal-btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
}

#cookie-consent-modal .cookie-modal-btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 16px;
    }

    #cookie-consent-banner .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    #cookie-consent-banner .cookie-banner-content {
        min-width: 100%;
    }

    #cookie-consent-banner .cookie-banner-title {
        justify-content: center;
    }

    #cookie-consent-banner .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    #cookie-consent-banner .cookie-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }

    #cookie-consent-modal {
        width: 95%;
        max-height: 90vh;
    }

    #cookie-consent-modal .cookie-modal-header,
    #cookie-consent-modal .cookie-modal-body,
    #cookie-consent-modal .cookie-modal-footer {
        padding: 16px;
    }

    #cookie-consent-modal .cookie-modal-footer {
        flex-direction: column;
    }

    #cookie-consent-modal .cookie-modal-btn {
        width: 100%;
    }
}

/* Print - hide consent elements */
@media print {
    #cookie-consent-banner,
    #cookie-consent-modal,
    #cookie-consent-overlay {
        display: none !important;
    }
}

/* Body offset when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 200px;
    }
}
