/* Çerez Yönetimi CSS */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.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;
}

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

.cookie-banner-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

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

.cookie-banner-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #2980b9;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h4 {
    margin: 0;
    color: #2c3e50;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f1f1f1;
    color: #333;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 8px;
}

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

.form-check-label strong {
    color: #2c3e50;
}

.cookie-modal-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-banner-text h4 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 15px 15px 10px;
    }
    
    .cookie-modal-body {
        padding: 15px;
    }
    
    .cookie-modal-footer {
        padding: 10px 15px 15px;
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        margin: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .cookie-modal-footer .btn:last-child {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-actions .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Form Switch Custom Styling */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Animation for smooth interactions */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Cookie preferences link in footer */
.cookie-preferences-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.cookie-preferences-link:hover {
    color: #333;
    text-decoration: underline;
}

.cookie-preferences-link i {
    font-size: 12px;
}
