/* static/css/style.css - Clean Solid Darkmode Theme (No cheesy gradients) */
:root {
    --bg-dark: #0c0e14;
    --bg-card: #131722;
    --bg-card-hover: #181d2a;
    --border-color: #232938;
    --border-glow: #232938;
    
    --neon-cyan: #38bdf8;
    --neon-purple: #818cf8;
    --neon-pink: #f43f5e;
    --neon-gold: #fbbf24;
    --neon-green: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --shiki-color: #f43f5e;
    --steam-color: #38bdf8;
    --combo-color: #818cf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.ambient-glow {
    display: none !important;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header & Nav */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.logo span {
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo:hover span {
    color: var(--neon-cyan);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-cyan);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 9999px;
    color: var(--neon-purple);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-title .accent-text,
.hero-title .gradient-text {
    color: #38bdf8;
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Platform Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 540px;
    margin: 0 auto 2rem auto;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tab-btn[data-tab="shikimori"].active {
    color: var(--shiki-color);
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.tab-btn[data-tab="steam"].active {
    color: var(--steam-color);
    border: 1px solid rgba(0, 180, 216, 0.4);
}

.tab-btn[data-tab="combo"].active {
    color: var(--combo-color);
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Card Form Container */
/* Card Form Container */
.form-card {
    background: #121620;
    border: 1px solid #232938;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    max-width: 720px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #090c12;
    border: 1px solid #232938;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.input-control:focus {
    border-color: #38bdf8;
}

.input-control::placeholder {
    color: var(--text-dim);
}

/* Age Slider */
.slider-container {
    background: #0c0f17;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #232938;
    margin-bottom: 1.75rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.slider-val {
    color: #38bdf8;
    font-weight: 800;
}

.slider-control {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #232938;
    outline: none;
    cursor: pointer;
    accent-color: #38bdf8;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.15rem 2rem;
    background: #0284c7;
    border: 1px solid #0369a1;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit:hover {
    background: #0369a1;
    border-color: #38bdf8;
}

.btn-submit:active {
    background: #075985;
}

/* Quick Presets Pills */
.presets-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.presets-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.preset-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-color: var(--neon-cyan);
    transform: translateY(-1px);
}

/* Loading State */
.loading-box {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border: 3px solid rgba(0, 242, 254, 0.15);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.loading-sub {
    color: var(--neon-cyan);
    font-size: 0.95rem;
    font-style: italic;
}

/* Result Dashboard (Wrapped) */
.wrapped-container {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.profile-info {
    flex: 1;
}

.profile-nick {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rank-badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 9999px;
    letter-spacing: 1px;
}

.profile-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.profile-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 750px;
}

/* Big Hero Stat Box */
.big-stat-box {
    background: #121620;
    border: 1px solid #232938;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.big-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.big-stat-number {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
    margin-bottom: 0.75rem;
}

.big-stat-sub {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.75rem;
}

.life-bar-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: #090c12;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #232938;
}

.life-bar-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.life-bar-text .highlight {
    color: #38bdf8;
}

.life-bar-track {
    height: 10px;
    background: #1e2433;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.life-bar-fill {
    height: 100%;
    background: #0284c7;
    border-radius: 5px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ratio Bar (Combo Mode) */
.combo-ratio-wrap {
    max-width: 600px;
    margin: 1.25rem auto 0 auto;
}

.ratio-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ratio-track {
    height: 10px;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
}

.ratio-anime {
    background: var(--shiki-color);
    height: 100%;
}

.ratio-steam {
    background: var(--steam-color);
    height: 100%;
}

/* Section Titles */
.section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-head span {
    color: var(--neon-cyan);
}

/* Equivalents Grid */
.equiv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.equiv-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equiv-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.equiv-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.equiv-icon {
    font-size: 2.2rem;
}

.equiv-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-align: right;
    line-height: 1.1;
}

.equiv-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.equiv-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Top Items Cards */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

.item-img-wrap {
    width: 100%;
    height: 140px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item-card:hover .item-img {
    transform: scale(1.05);
}

.item-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.item-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 800;
}

/* Share & Actions Toolbar */
.actions-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.actions-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-download {
    background: #0284c7;
    color: #fff;
    border: 1px solid #0369a1;
}

.btn-download:hover {
    background: #0369a1;
    border-color: #38bdf8;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-reset {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--neon-cyan);
    text-decoration: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 21, 40, 0.95);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .profile-nick {
        justify-content: center;
    }
    .equiv-grid {
        grid-template-columns: 1fr;
    }
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .actions-buttons {
        flex-direction: column;
    }
}
