/* Moneyline Converter Specific Styles */

/* Page Container */
.moneyline-converter-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
}

/* Warning Box */
.parlay-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.warning-icon {
    flex-shrink: 0;
    color: #fbbf24;
}

.warning-content {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
}

.warning-content strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 0.25rem;
}

/* Converter Container */
.converter-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .converter-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .conversion-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
}

.input-column label,
.output-column label {
    display: block;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.input-column input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    color: var(--text-primary, #ffffff);
    text-align: center;
    transition: all 0.3s ease;
}

.input-column input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.output-display {
    padding: 1.25rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: var(--bg-elevated, #242424);
    border: 2px solid #10b981;
    border-radius: 10px;
    color: #10b981;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary, #666);
    text-align: center;
}

.conversion-arrow {
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip {
    cursor: help;
    color: #10b981;
    margin-left: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.calculate-btn,
.reset-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculate-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.reset-btn {
    background: var(--bg-elevated, #242424);
    color: var(--text-secondary, #a0a0a0);
    border: 2px solid var(--border-subtle, #333);
}

.reset-btn:hover {
    border-color: #10b981;
    color: var(--text-primary, #ffffff);
}

/* Examples Box */
.examples-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
}

.examples-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1rem;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

.example-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    border-color: #10b981;
    color: var(--text-primary, #ffffff);
    transform: translateY(-2px);
}

/* Additional Results */
.additional-results {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
}

.additional-results h3 {
    font-size: 1.1rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1rem;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-box {
    padding: 1rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 8px;
    text-align: center;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-tertiary, #666);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

/* Alert Box */
.alert-box {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.alert-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Info Section Styles */
.info-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
}

.info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1rem;
}

.info-section p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Formula Box */
.formula-box {
    background: var(--bg-elevated, #242424);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.formula-box h3 {
    font-size: 1.1rem;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.formula-box p {
    margin-bottom: 0.5rem;
}

.formula-box ul {
    list-style: none;
    padding-left: 0;
}

.formula-box li {
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.formula-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.formula-box p.example {
    font-style: italic;
    color: var(--text-tertiary, #666);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #333);
}

/* Info Card Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 0.75rem;
}

.info-card p.note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-tertiary, #666);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle, #333);
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Math Examples Grid */
.math-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .math-examples {
        grid-template-columns: 1fr;
    }
}

.math-example {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.math-example:hover {
    border-color: #10b981;
}

.math-example h4 {
    font-size: 1rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.math-example p {
    margin-bottom: 0.5rem;
}

/* Conversion Table */
.conversion-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.conversion-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated, #242424);
    border-radius: 10px;
    overflow: hidden;
}

.conversion-table thead {
    background: rgba(16, 185, 129, 0.1);
}

.conversion-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #10b981;
    border-bottom: 2px solid var(--border-subtle, #333);
}

.conversion-table td {
    padding: 0.875rem 1rem;
    color: var(--text-secondary, #a0a0a0);
    border-bottom: 1px solid var(--border-subtle, #333);
}

.conversion-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

.conversion-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .conversion-table {
        font-size: 0.875rem;
    }

    .conversion-table th,
    .conversion-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

.tip-card {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.tip-card h4 {
    font-size: 1rem;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.tip-card p {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

.pf-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pf-accordion-item {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pf-accordion-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.pf-accordion-item[open] {
    border-color: #10b981;
}

.pf-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pf-accordion-summary::-webkit-details-marker {
    display: none;
}

.pf-accordion-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    flex: 1;
}

.pf-accordion-icon {
    flex-shrink: 0;
    color: #10b981;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.pf-accordion-item[open] .pf-accordion-icon {
    transform: rotate(45deg);
}

.pf-accordion-content {
    padding: 0 1.5rem 1.25rem;
}

.pf-accordion-content p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.7;
    margin: 0;
}

/* Related Tools Section */
.related-tools-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.5rem;
}

.related-tools-header p {
    color: var(--text-secondary, #a0a0a0);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

.related-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tool-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.tool-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #10b981;
}

.tool-card-content {
    flex: 1;
}

.tool-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.25rem;
}

.tool-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    margin: 0;
}

.tool-card-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary, #666);
    transition: all 0.3s ease;
}

.related-tool-card:hover .tool-card-arrow {
    color: #10b981;
    transform: translateX(4px);
}
