/* 
 * MyTaxRefund.info - Premium Fintech Theme
 * Design System: Onyx & Emerald
 */

/* =========================================
   1. Design Tokens & Variables
   ========================================= */
:root {
    /* Base Colors - The "Onyx" Palette */
    --bg-onyx-deep: #020408;
    /* Almost black, deep void */
    --bg-onyx: #0B1120;
    /* Rich dark blue-grey */
    --bg-onyx-light: #151e32;
    /* Lighter surface */

    /* Accent Colors - The "Emerald" Palette */
    --accent-emerald-dim: #064e3b;
    --accent-emerald: #10b981;
    --accent-emerald-bright: #34d399;
    --accent-teal: #2dd4bf;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Functional Colors */
    --success: #10b981;
    --error: #f43f5e;
    --warning: #f59e0b;

    /* Glassmorphism & Borders */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', sans-serif;
}

/* =========================================
   2. Base Styles & Reset
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-onyx-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Noise Texture - Adds "Premium" feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

/* Ambient Glows - Aurora effect */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

.glow-top-left {
    top: -200px;
    left: -200px;
    opacity: 0.6;
}

.glow-bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.4;
}

/* =========================================
   3. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-emerald-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   4. Components: Glass Cards
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Inner highlight for 3D feel */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

/* =========================================
   5. Components: Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dim) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Shine effect on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   6. Components: Forms
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-field::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* =========================================
   7. Specific Modules
   ========================================= */

/* Navigation */
.nav-blur {
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

/* Progress Steps */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-onyx-light);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-item.active .step-circle {
    background: var(--accent-emerald);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    border-color: transparent;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step-item.active .step-label {
    color: var(--accent-emerald-bright);
}

/* Result Box */
.result-display {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, rgba(11, 17, 32, 0) 70%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-emerald-bright);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    line-height: 1.1;
}

/* Table / Breakdowns */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.breakdown-row strong {
    color: var(--text-primary);
}

/* Tooltips */
.tooltip-icon {
    color: var(--text-tertiary);
    cursor: help;
    transition: color 0.2s;
}

.tooltip-icon:hover {
    color: var(--accent-emerald-bright);
}

.tooltip-body {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.75rem;
    border-radius: 6px;
    width: 250px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 50;
}

.tooltip-wrapper:hover .tooltip-body {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* =========================================
   8. Utilities
   ========================================= */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ad Placeholders (Low profile) */
.ad-slot {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}