/**
 * Lions Türkiye - Cookie Manager Styles
 * Modern, keskin kenarlı tasarım
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 4px solid #0072ce;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 2rem;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: #0072ce;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Onest', sans-serif;
}

.btn-primary:hover {
    background: #005aa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Onest', sans-serif;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #0072ce;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: 2px solid #0072ce;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Onest', sans-serif;
}

.btn-outline:hover {
    background: #0072ce;
    color: white;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    color: #ef4444;
    background: #fee2e2;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    padding: 1.5rem;
    background: #f9fafb;
    margin-bottom: 1rem;
    border-left: 4px solid #0072ce;
}

.cookie-category-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-label:hover {
    background: #9ca3af;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    transition: transform 0.3s;
}

input[type="checkbox"]:checked + .toggle-label {
    background: #0072ce;
}

input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    transform: translateX(24px);
}

.toggle-disabled {
    background: #d1d5db;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.cookie-modal-footer {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Settings Button (floating) */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #0072ce;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.4);
    z-index: 9998;
    transition: all 0.3s;
}

.cookie-settings-btn:hover {
    background: #005aa3;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 114, 206, 0.5);
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10b981;
    z-index: 10001;
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease-out;
    transition: opacity 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.5rem 1rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions button {
        width: 100%;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer button {
        width: 100%;
    }

    .cookie-settings-btn {
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .cookie-toast {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-primary {
    color: #0072ce;
}

.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563eb;
}

.text-orange-600 {
    color: #ea580c;
}

.text-purple-600 {
    color: #9333ea;
}
