/**
 * Cookie Consent Banner Styles
 * Modern, professional cookie consent similar to nisekohakuunso.com
 */

.cookie-consent {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 10003 !important;
    transform: translateY(100%) translateZ(0);
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    isolation: isolate !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform;
}

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

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

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal, #1f2937);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.cookie-consent-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary-blue, #4FA3FF);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--primary-blue-dark, #1E6CD6);
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-btn-accept {
    background: var(--primary-blue, #4FA3FF);
    color: white;
}

.cookie-consent-btn-accept:hover {
    background: var(--primary-blue-dark, #1E6CD6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 163, 255, 0.4);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.cookie-consent-btn-decline:hover {
    background: #f3f4f6;
    color: var(--charcoal, #1f2937);
}

.cookie-consent-btn-settings {
    background: transparent;
    color: var(--primary-blue, #4FA3FF);
    text-decoration: underline;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.cookie-consent-btn-settings:hover {
    color: var(--primary-blue-dark, #1E6CD6);
}

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

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-content {
        min-width: auto;
    }

    .cookie-consent-title {
        font-size: 1rem;
    }

    .cookie-consent-text {
        font-size: 0.85rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-settings-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal, #1f2937);
    margin: 0;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.cookie-settings-body {
    padding: 1.5rem 2rem;
}

.cookie-setting-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cookie-setting-title {
    font-weight: 600;
    color: var(--charcoal, #1f2937);
    margin: 0;
}

.cookie-setting-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

.cookie-setting-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

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

.cookie-setting-toggle input:checked + .cookie-setting-slider {
    background-color: var(--primary-blue, #4FA3FF);
}

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

.cookie-setting-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

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

/* Smooth animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent.show {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

