/* Cookie Banner Styles for Oto no Tabi */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    border-top: 2px solid #2d5a87;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

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

.cookie-banner.hide {
    transform: translateY(100%);
}

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

/* Banner Header */
.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    flex-shrink: 0;
}

.cookie-banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

/* Banner Text */
.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    opacity: 0.8;
}

/* Banner Actions */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background-color: #e53e3e;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #c53030;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-customize {
    background-color: #2d5a87;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-customize:hover {
    background-color: #1a365d;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background-color: #f1f5f9;
    color: #1a365d;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.cookie-category.essential .cookie-category-title::after {
    content: " (Required)";
    font-size: 0.8rem;
    color: #e53e3e;
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #e53e3e;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #f1f5f9;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Modal Actions */
.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.cookie-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cookie-modal-btn-save {
    background-color: #e53e3e;
    color: #ffffff;
}

.cookie-modal-btn-save:hover {
    background-color: #c53030;
}

.cookie-modal-btn-cancel {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.cookie-modal-btn-cancel:hover {
    background-color: #e2e8f0;
    color: #1a365d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-content {
        gap: 12px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-modal {
        padding: 12px;
    }
    
    .cookie-modal-content {
        padding: 24px;
        max-height: 90vh;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-header {
        gap: 8px;
    }
    
    .cookie-banner-title {
        font-size: 1rem;
    }
    
    .cookie-banner-text {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-modal-title {
        font-size: 1.2rem;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}