/* ============================================
   "The Modernist" - Clean, White, Sans-serif
   ============================================ */
.theme-modern {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --positive: #10b981;
    --warning: #f59e0b;
}

.theme-modern body,
body.theme-modern {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.theme-modern .app-container {
    max-width: 720px;
    margin: 0 auto;
}

.theme-modern .skin-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.theme-modern .skin-selector button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.2s;
}

.theme-modern .skin-selector button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.theme-modern .site-header {
    text-align: center;
    margin-bottom: 20px;
}
.theme-modern .site-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.theme-modern .site-logo:hover {
    opacity: 0.85;
}

.theme-modern .calc-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.theme-modern h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text);
}

.theme-modern .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.theme-modern .input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.theme-modern .input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-modern .input-group.full-width {
    grid-column: 1 / -1;
}

.theme-modern .phase-header {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0 0 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.theme-modern .input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-modern .input-group input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.theme-modern .input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.theme-modern .btn-calculate {
    grid-column: 1 / -1;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.theme-modern .btn-calculate:hover {
    background: var(--accent-hover);
}

.theme-modern .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.theme-modern .res-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.theme-modern .res-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.theme-modern .res-card .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.theme-modern .res-card .value.positive {
    color: var(--positive);
}

.theme-modern .res-card .value.warning {
    color: var(--warning);
}

/* AdSense CLS Prevention */
.theme-modern #adsense-top {
    min-height: 100px;
    contain: strict;
    min-width: 300px;
    background: var(--bg);
    margin-bottom: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-modern .chart-wrapper {
    margin-top: 24px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px;
}

.theme-modern .chart-wrapper canvas {
    width: 100%;
    height: 220px;
    display: block;
}

.theme-modern .progress-wrapper {
    margin-top: 20px;
}

.theme-modern .progress-bar {
    width: 100%;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.theme-modern .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--positive));
    border-radius: 12px;
    transition: width 0.4s ease;
    min-width: 0;
}

.theme-modern .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.theme-modern .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.theme-modern .nav-links a {
    display: inline-block;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.theme-modern .nav-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Floating "How to Use" Link */
.theme-modern .how-to-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.theme-modern .how-to-float:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(0,0,0,0.15);
}

/* Toggle switch for Phase 2 */
.theme-modern .toggle-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
}

.theme-modern .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.theme-modern .toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.theme-modern .toggle-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.theme-modern .phase2-input {
    display: none;
}

/* SEO Content Section */
.theme-modern .seo-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 32px;
    padding-top: 3rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    line-height: 1.6;
    color: var(--text);
    text-align: left;
    border-top: 1px solid var(--border);
}
.theme-modern .seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text);
}
.theme-modern .seo-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--accent);
}
.theme-modern .seo-content p {
    font-size: 15px;
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
}
.theme-modern .seo-content ul,
.theme-modern .seo-content ol {
    font-size: 15px;
    color: var(--text-muted);
    padding-left: 24px;
    margin: 0 0 1.5rem 0;
}
.theme-modern .seo-content li {
    margin-bottom: 8px;
}
.theme-modern .seo-content article {
    margin-bottom: 24px;
}
.theme-modern .seo-content article:last-child {
    margin-bottom: 0;
}

/* Dimmed placeholder values */
.theme-modern .input-group input.placeholder-value {
    color: var(--text-muted);
    opacity: 0.55;
}
