/* assets/css/pages/roas-tool.css */

:root {
    --roas-primary: #6366f1;
    --roas-secondary: #8b5cf6;
    --roas-dark: #0f172a;
    --roas-success: #10b981;
    --roas-warning: #f59e0b;
    --roas-danger: #ef4444;
}

/* HERO SECTION */
.roas-hero {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 160px 0 100px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roas-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.3);
    filter: blur(100px);
    border-radius: 50%;
}

.roas-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.3);
    filter: blur(100px);
    border-radius: 50%;
}

.roas-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CALCULATOR CARD */
.roas-card-wrapper {
    margin-top: -100px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.roas-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* INPUTS */
.roas-input-group {
    margin-bottom: 30px;
    position: relative;
}

.roas-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 1.2rem;
}

.roas-input {
    width: 100%;
    padding: 18px 20px 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.roas-input:focus {
    outline: none;
    border-color: var(--roas-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* RESULTS SIDE */
.roas-result-panel {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.circle-chart {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
}

.circle-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 2.5;
}

.circle-progress {
    fill: none;
    stroke: var(--roas-success);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 0.6s ease;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.roas-score-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.roas-label-mini {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
    transition: all 0.3s;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.stat-item h6 {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.stat-item strong {
    font-size: 1.2rem;
    color: #fff;
}

/* TABLET & MOBILE */
@media (max-width: 991px) {
    .roas-card .row {
        flex-direction: column-reverse;
        /* Inputs on top creates flow? No, let's keep inputs usage top */
    }

    .roas-result-panel {
        margin-top: 30px;
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .roas-hero {
        padding: 80px 0 140px;
    }

    .roas-hero h1 {
        font-size: 2.2rem;
    }

    .roas-card {
        padding: 15px;
    }

    .roas-input {
        font-size: 1rem;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .circle-chart {
        width: 140px;
        height: 140px;
    }

    .roas-score-big {
        font-size: 2.5rem;
    }
}