/* Cookie Consent Banner Styles pentru sifoaneinox.ro */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #ce161b 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-policy-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.cookie-policy-link:hover {
    opacity: 1;
}

.cookie-policy-link-inline {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-policy-link-inline:hover {
    opacity: 0.9;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #ce161b;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #a51116;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 22, 27, 0.4);
}

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

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-consent-text h3 {
        font-size: 18px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Settings Panel Styles */
.cookie-consent-settings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.cookie-back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.cookie-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.cookie-settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-category-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

.cookie-category-details {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

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

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.4);
}

.cookie-settings-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-settings-footer .cookie-btn {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .cookie-settings-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cookie-back-btn {
        align-self: flex-start;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-consent-text h3 {
        font-size: 16px;
    }
    
    .cookie-consent-text p {
        font-size: 12px;
    }
}

/* Varianta alternativă - culori pentru site inox (opțional) */
/*
#cookie-consent-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.cookie-btn-accept {
    background-color: #3498db;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #2980b9;
}
*/
