/**
 * Tesla Bérlés - Cookie Consent Styles
 * Modern, GDPR-kompatibilis sütikezelési felület stílusai
 */

/* Cookie Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #FFD700;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h5 {
    color: #FFD700;
    margin: 0 0 8px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #ccc;
    border: 2px solid #555;
}

.cookie-btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.cookie-btn-text {
    background: transparent;
    color: #999;
    padding: 8px 12px;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal .modal-dialog {
    max-width: 600px;
}

.cookie-preferences-modal .modal-header {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border-bottom: 2px solid #FFD700;
}

.cookie-preferences-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-title {
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-body {
    padding: 15px 20px;
}

.cookie-category-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    z-index: 1;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.cookie-switch input:disabled {
    cursor: not-allowed;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease;
    border-radius: 28px;
    border: 2px solid transparent;
    z-index: 1;
    pointer-events: none;
}

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

.cookie-switch input:hover + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.cookie-switch input:not(:disabled):hover + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
}

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
    outline: none;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Disabled state for necessary cookies */
.cookie-slider.disabled {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    border-color: #4CAF50;
}

.cookie-slider.disabled:before {
    transform: translateX(22px) !important;
}

.cookie-slider.disabled:hover {
    box-shadow: none !important;
}

/* Remove redundant hover state */
.cookie-switch input:hover + .cookie-slider {
    box-shadow: none;
}

/* Category Icons */
.cookie-icon {
    font-size: 18px;
    opacity: 0.8;
}

.necessary-icon { color: #4CAF50; }
.functionality-icon { color: #2196F3; }
.analytics-icon { color: #FF9800; }
.advertising-icon { color: #9C27B0; }

/* Alert Styles */
.cookie-alert {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.cookie-alert-icon {
    color: #1976d2;
    margin-right: 8px;
}

.cookie-alert-text {
    margin: 0;
    color: #1976d2;
    font-size: 14px;
}

/* 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: 120px;
        justify-content: center;
    }
    
    .cookie-preferences-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    color: #FFD700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cookie-settings-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Animation for page load */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-animate {
    animation: slideUp 0.5s ease-out;
}