/* index.css - Clean light UI with subtle animations */

/* Variables */
:root {
    --bg-page: linear-gradient(135deg, #f7f9fb 0%, #e8f0f5 100%);
    --bg-card: #ffffff;
    --bg-card-soft: #f8fafc;
    --border-subtle: rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.10);

    --text-main: #1a2a3a;
    --text-muted: #4a5a6a;
    --text-soft: #94a3b8;

    --accent: #16a34a;
    --accent-soft: #dcfce7;

    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

/* Page layout */
.page-shell {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-accent {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0, rgba(148, 163, 184, 0.18), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(22, 163, 74, 0.18), transparent 55%);
    opacity: 0.7;
}

/* Card container */
.container {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transform: translateY(8px);
    opacity: 0;
    animation: container-in 0.4s ease-out forwards;
}

@keyframes container-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.5;
}

/* Form list */
.form-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-item {
    background: var(--bg-card-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.form-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22,163,74,0.08), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.form-item[data-status="open"] {
    border-color: rgba(22, 163, 74, 0.25);
}

.form-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: #ffffff;
}

.form-item:hover::before {
    opacity: 1;
}

/* Inside card */
.form-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.form-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}

.badge.open {
    background-color: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge.closed {
    background-color: #e5e7eb;
    color: #6b7280;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Button area */
.form-actions {
    display: flex;
    align-items: center;
}

.open-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22,163,74,0.25);
    transition: background-position 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
    background-size: 200% 100%;
    background-position: 0% 50%;
}

.open-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22,163,74,0.30);
}

.open-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(22,163,74,0.25);
}

.open-btn:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
}

/* Coming soon + footer */
.coming-soon {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.brand {
    font-weight: 600;
    color: var(--accent);
}

.footer {
    margin-top: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-shell {
        padding: 16px;
    }

    .container {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .form-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-main {
        width: 100%;
    }

    .form-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .open-btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .form-item {
        padding: 14px 14px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}