/* --- EQUITY CALCULATOR PAGE STYLES --- */

/* Hero override for equity page */
.equity-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Calculator card container */
.calc-container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calc-container.hidden {
    display: none !important;
}

/* Scoped heading overrides inside calc containers */
.calc-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.calc-container h2 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: block;
    padding-bottom: 5px;
    width: 100%;
    text-align: left;
}

.unified-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
    text-align: center;
}

/* --- Calculator Buttons --- */
.btn-calc {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px 5px;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-calc:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-prev {
    background-color: transparent;
    border-color: #444;
    color: #888;
}

.btn-prev:hover {
    border-color: #666;
    color: #ccc;
}

.btn-add {
    background-color: transparent;
    border-color: #333;
    color: #aaa;
    font-size: 0.8rem;
}

.btn-add:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- Input Fields --- */
.calc-container .input-group {
    margin-bottom: 15px;
    width: 100%;
}

.calc-container .input-field {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-size: 1rem;
    padding: 12px;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    transition: border-color 0.3s;
    font-family: inherit;
}

.calc-container .input-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Question Display --- */
#question-display {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
    color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Options --- */
.options-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 6px;
    transition: all 0.2s;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #444;
}

.option-item input {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

/* --- Results --- */
.results-list {
    list-style: none;
    width: 100%;
    margin: 20px 0;
    padding: 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding: 15px;
    border-bottom: 1px solid #222;
}

.result-item:last-child {
    border-bottom: none;
}

.founder-name {
    font-weight: bold;
    color: #fff;
}

.founder-equity {
    color: var(--accent-color);
    font-weight: 800;
}

/* --- Analytical Report --- */
#analytical-report {
    text-align: left;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid var(--accent-color);
    margin-top: 30px;
    border-radius: 0 0 12px 12px;
    width: 100%;
}

.report-block {
    margin-bottom: 25px;
}

.report-block ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-top: 10px;
}

.report-block li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.report-warning {
    color: #ff4d4d;
    font-weight: bold;
    margin-top: 10px;
}

.report-info {
    color: #4da3ff;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Progress Bar --- */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #222;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* --- Auth Modal (duplicated from style.css for cache safety) --- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 6, 0.85);
}

.auth-modal-card {
    position: relative;
    background: #111;
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 50px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.15);
    z-index: 1;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #fff;
}

.auth-modal-error {
    color: #ff4444;
    margin-top: 15px;
    font-size: 0.85rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .equity-hero {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: calc(100vh - 150px);
    }

    .calc-container {
        padding: 25px 18px;
        border-radius: 10px;
    }

    .calc-container h1 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .calc-container h2 {
        font-size: 1.05rem;
    }

    .unified-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    #question-display {
        font-size: 1rem;
        min-height: 50px;
        margin: 15px 0;
    }

    .option-item {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .btn-calc {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .result-item {
        font-size: 1rem;
        padding: 12px 8px;
    }

    #analytical-report {
        padding: 20px 12px;
    }

    .report-block h2 {
        font-size: 1rem;
    }

    /* Result screen wider on mobile */
    #screen-result {
        max-width: 100%;
    }

    /* Stack result action buttons */
    #screen-result > div[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch;
    }

    #screen-result .btn-calc {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .calc-container {
        padding: 20px 14px;
    }

    .calc-container h1 {
        font-size: 1.2rem;
    }

    .btn-calc {
        padding: 10px 14px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}
