/* static/css/common.css */

/* --- Base Styles --- */
body {
    background-color: var(--bg-body);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    margin: 0;
}

/* --- Typography (共通) --- */
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn-select {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-primary-gradient {
    background: var(--ogai-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-primary-gradient:hover {
    opacity: 0.95;
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-gradient {
    background: white;
    color: var(--ogai-dark-green);
    border: 2px solid #e5e7eb;
}

.btn-outline-gradient:hover {
    border-color: var(--ogai-teal);
    color: var(--ogai-teal);
    background: #f0fdfa;
}

/* --- Top Notification Ribbon --- */
.top-ribbon {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    animation: ribbon-fade 2s forwards;
    border-bottom: 1px solid transparent;
}

@keyframes ribbon-fade {
    0%,
    50% {
        background: var(--ogai-accent-secondary);
        color: white;
    }
    100% {
        background: #ffffff;
        color: var(--text-primary);
    }
}

.ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Info Card (Basic) --- */
.info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s ease;
}

/* --- Toggle Switch --- */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
    background-color: var(--ogai-teal);
}
input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- Forms --- */
.refined-input {
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.refined-input:focus {
    background-color: #ffffff;
    border-color: var(--ogai-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.refined-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}
.refined-input::-ms-input-placeholder {
    color: var(--text-muted);
}

/* --- Modal Refined --- */
.modal-refined {
    border-radius: 16px;
    background-color: var(--bg-modal);
    overflow: hidden;
}
.modal-refined .modal-header {
    padding: 1rem;
    border-bottom: none;
    background: var(--ogai-gradient);
    color: white;
}
.modal-refined .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}
