/* Cookie Consent Component Styles */
/* Yu Bodrum Cookie Consent Banner */

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #BFA76A, #D4C08A);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.cookie-text h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Nord', sans-serif;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    max-width: 500px;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nord', sans-serif;
    text-decoration: none;
}

.cookie-btn svg {
    width: 16px;
    height: 16px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #BFA76A, #D4C08A);
    color: #000;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #D4C08A, #E5D19B);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-panel.show {
    transform: translateY(0);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-header h3,
.cookie-settings-header h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Nord', sans-serif;
}

.cookie-settings-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.close-settings {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-settings:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.close-settings svg {
    width: 20px;
    height: 20px;
}

.cookie-categories {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.category-info {
    flex: 1;
}

.category-info h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Nord', sans-serif;
}

.category-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.category-toggle {
    flex-shrink: 0;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #BFA76A, #D4C08A);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: #000;
}

.toggle-slider.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Theme Support */
[data-theme="light"] .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-text h4 {
    color: #000;
}

[data-theme="light"] .cookie-text p {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cookie-btn-decline {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .cookie-btn-decline:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cookie-btn-settings {
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .cookie-btn-settings:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cookie-settings-panel {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-settings-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-settings-header h3,
[data-theme="light"] .cookie-settings-header h4 {
    color: #000;
}

[data-theme="light"] .cookie-settings-header p {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .close-settings {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .close-settings:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toggle-label {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .cookie-category {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .category-info h5 {
    color: #000;
}

[data-theme="light"] .category-info p {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .toggle-slider {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-slider:before {
    background-color: #fff;
}

[data-theme="light"] input:checked + .toggle-slider:before {
    background-color: #000;
}

[data-theme="light"] .cookie-settings-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .cookie-categories {
        padding: 1.5rem 1rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-toggle {
        align-self: flex-end;
    }

    .cookie-settings-actions {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 1rem;
    }

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-categories {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }
}