/* Odds Converter Styles - Shared across all converters */

.odds-converter-page {
    padding: var(--space-lg, 1.5rem) 0;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: var(--space-2xl, 2.5rem);
    padding-bottom: var(--space-xl, 2rem);
    border-bottom: 3px solid var(--border-color, #2d3548);
}

.calculator-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-sm, 0.5rem);
}

.calculator-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary, #94a3b8);
}

/* Sections */
.calculator-section,
.info-section {
    background: var(--bg-surface, #232838);
    border: 3px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-2xl, 2.5rem);
    margin-bottom: var(--space-2xl, 2.5rem);
}

/* Universal Odds Converter specific styles */
.universal-converter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl, 2rem);
    margin-bottom: var(--space-xl, 2rem);
}

.odds-input-box {
    background: var(--bg-card, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-xl, 2rem);
    transition: all 0.2s;
}

.odds-input-box:hover,
.odds-input-box.active {
    border-color: var(--accent-primary, #14b8a6);
}

.odds-input-box label {
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-sm, 0.5rem);
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
    font-size: 1.125rem;
}

.odds-input-box input {
    width: 100%;
    padding: var(--space-md, 1rem);
    background: var(--bg-surface, #232838);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    color: var(--text-primary, #ffffff);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
}

.odds-input-box input:focus {
    outline: none;
    border-color: var(--accent-primary, #14b8a6);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-top: var(--space-xl, 2rem);
}

.result-box {
    background: var(--bg-card, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-lg, 1.5rem);
    text-align: center;
}

.result-label {
    font-size: 0.875rem;
   	color: var(--text-secondary, #94a3b8);
    margin-bottom: var(--space-sm, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-primary, #14b8a6);
}

.additional-results {
    margin-top: var(--space-2xl, 2.5rem);
    padding-top: var(--space-2xl, 2.5rem);
    border-top: 2px solid var(--border-color, #2d3548);
}

.additional-results h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-lg, 1.5rem);
    text-align: center;
}

/* Converter Container */
.converter-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl, 2rem);
    align-items: center;
    margin-bottom: var(--space-xl, 2rem);
}

.input-column,
.output-column {
    display: flex;
    flex-direction: column;
}

.input-column label,
.output-column label {
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-sm, 0.5rem);
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
    font-size: 1.125rem;
}

.tooltip {
    cursor: help;
    color: var(--accent-primary, #14b8a6);
    font-size: 0.875rem;
}

#fractionalInput,
#decimalInput,
#americanInput {
    padding: var(--space-lg, 1.5rem);
    background: var(--bg-card, #1a1f2e);
    border: 3px solid var(--border-color, #2d3548);
    border-radius: 4px;
    color: var(--text-primary, #ffffff);
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
}

#fractionalInput:focus,
#decimalInput:focus,
#americanInput:focus {
    outline: none;
    border-color: var(--accent-primary, #14b8a6);
}

.output-display {
    padding: var(--space-lg, 1.5rem);
    background: rgba(20, 184, 166, 0.1);
    border: 3px solid var(--accent-primary, #14b8a6);
    border-radius: 4px;
    color: var(--accent-primary, #14b8a6);
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-hint {
    margin-top: var(--space-sm, 0.5rem);
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
}

/* Conversion Arrow */
.conversion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary, #14b8a6);
}

.conversion-arrow svg {
    width: 48px;
    height: 48px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-md, 1rem);
    margin-top: var(--space-xl, 2rem);
    flex-wrap: wrap;
}

.calculate-btn {
    flex: 1;
    min-width: 200px;
    padding: var(--space-lg, 1.5rem) var(--space-2xl, 2.5rem);
    background: var(--accent-primary, #14b8a6);
    border: none;
    border-radius: 4px;
    color: #000000;
    font-weight: 900;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm, 0.5rem);
}

.calculate-btn:hover {
    background: var(--accent-primary-hover, #2dd4bf);
    transform: translateY(-2px);
}

.calc-icon {
    font-size: 1.5rem;
}

.reset-btn {
    padding: var(--space-lg, 1.5rem) var(--space-xl, 2rem);
    background: transparent;
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    border-color: var(--accent-primary, #14b8a6);
    color: var(--text-primary, #ffffff);
}

/* Examples Box */
.examples-box {
    margin-top: var(--space-2xl, 2.5rem);
    padding: var(--space-xl, 2rem);
    background: var(--bg-card, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
}

.examples-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-md, 1rem);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md, 1rem);
}

.example-btn {
    padding: var(--space-md, 1rem);
    background: var(--bg-surface, #232838);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.example-btn:hover {
    border-color: var(--accent-primary, #14b8a6);
    background: rgba(20, 184, 166, 0.1);
}

/* Share Section */
.share-section {
    margin-top: var(--space-xl, 2rem);
    padding-top: var(--space-xl, 2rem);
    border-top: 2px solid var(--border-color, #2d3548);
}

.share-buttons {
    display: flex;
    gap: var(--space-md, 1rem);
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    padding: var(--space-md, 1rem) var(--space-xl, 2rem);
    background: var(--bg-card, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
}

.share-btn:hover {
    border-color: var(--accent-primary, #14b8a6);
    background: rgba(20, 184, 166, 0.1);
}

/* Alert Box */
.alert-box {
    padding: var(--space-lg, 1.5rem);
    border-radius: 4px;
    margin-top: var(--space-xl, 2rem);
    font-weight: 600;
    text-align: center;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.alert-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #10b981;
}

/* Info Section */
.info-section h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-lg, 1.5rem);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-top: var(--space-xl, 2rem);
}

.info-card {
    background: var(--bg-card, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-xl, 2rem);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-md, 1rem);
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: var(--space-sm, 0.5rem) 0;
    color: var(--text-secondary, #94a3b8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card p {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

/* Conversion Table */
.conversion-table {
    overflow-x: auto;
    margin-top: var(--space-xl, 2rem);
}

.conversion-table table {
    width: 100%;
    border-collapse: collapse;
}

.conversion-table thead {
    background: var(--bg-card, #1a1f2e);
}

.conversion-table th {
    padding: var(--space-md, 1rem);
    text-align: left;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    border: 2px solid var(--border-color, #2d3548);
}

.conversion-table td {
    padding: var(--space-md, 1rem);
    color: var(--text-secondary, #94a3b8);
    border: 1px solid var(--border-color, #2d3548);
}

.conversion-table tbody tr:hover {
    background: rgba(20, 184, 166, 0.05);
}

/* Responsive */
@media (max-width: 968px) {
    .converter-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg, 1.5rem);
    }

    .conversion-arrow {
        transform: rotate(90deg);
    }

    .calculator-section,
    .info-section {
        padding: var(--space-lg, 1.5rem);
    }

    .output-display {
        font-size: 2rem;
    }

    #fractionalInput,
    #decimalInput,
    #americanInput {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
