/**
 * D'Alembert System Calculator - Professional Styling
 * Matches Dyutam Neo-Brutal Theme
 * Version: 1.1.0
 */

.dalembert-calculator-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: var(--space-2xl, 3rem);
}

.calculator-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md, 1rem);
    letter-spacing: -0.03em;
}

.calculator-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary, #94a3b8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: var(--space-3xl, 4rem);
}

/* Warning Box */
.parlay-warning-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.warning-icon {
    flex-shrink: 0;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
}

.warning-content {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning-content strong {
    color: #fbbf24;
    font-weight: 700;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Input and Results Sections */
.calculator-inputs,
.calculator-results {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.calculator-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-input:focus {
    outline: none;
    border-color: #10b981;
    background: #0f172a;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

.btn-calculate:active {
    transform: translateY(1px);
}

/* Results Section */
.results-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.result-card.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-left: 4px solid #10b981;
}

@media (max-width: 576px) {
    .result-card.highlight {
        grid-column: span 1;
    }
}

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.result-value.success {
    color: #10b981;
}

.result-value.danger {
    color: #ef4444;
}

.result-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Recommendation Box */
.recommendation-box {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
}

.recommendation-box h4 {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recommendation-box h4.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.recommendation-box h4.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.recommendation-box h4.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.recommendation-content {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.5);
}

.recommendation-box p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.recommendation-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-box ul li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recommendation-box ul li:last-child {
    border-bottom: none;
}

.recommendation-box ul li strong {
    color: #f8fafc;
}

/* Info Sections */
.info-section {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.info-section p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* Info Grids & Cards */
.info-grid, .risk-grid, .math-examples, .tips-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.info-grid { grid-template-columns: repeat(3, 1fr); }
.risk-grid { grid-template-columns: repeat(2, 1fr); }
.math-examples { grid-template-columns: repeat(3, 1fr); }
.tips-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 992px) {
    .info-grid, .math-examples, .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .info-grid, .risk-grid, .math-examples, .tips-grid { grid-template-columns: 1fr; }
}

.info-card, .risk-card, .math-example, .tip-card, .strategy {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.info-card:hover, .risk-card:hover, .math-example:hover, .tip-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Strategy Box */
.strategy-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .strategy-box { grid-template-columns: 1fr; }
}

.strategy.good { border-top: 4px solid #10b981; }
.strategy.bad { border-top: 4px solid #ef4444; }

/* FAQ Section */
.faq-section {
    background: #1e293b;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.pf-accordion-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.pf-accordion-summary {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Related Tools */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .related-tools-grid { grid-template-columns: 1fr; }
}

.related-tool-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-tool-card:hover {
    border-color: #10b981;
    background: #1e293b;
    transform: translateX(4px);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .dalembert-calculator-page {
        padding: 1.5rem 0.75rem;
    }

    .calculator-inputs, .calculator-results, .info-section, .faq-section {
        padding: 1.5rem;
    }

    .calculator-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

