/* ============================================
   CALCULATOR PAGE STYLES
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background-color: #f9fafb;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: #1d4ed8;
}

/* Page Header */
.page-header {
    padding: 2.5rem 0;
    background-color: #ffffff;
    width:100%;
}

.page-header h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    color: #111827;
    text-align:center;
    width:100%;
}

.page-intro {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.8;
    text-align:center;
    width:100%;
}

/* Calculator Tool Section */
.calculator-tool {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calculator-inputs {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.input-field:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Calculator Result */
.calculator-result {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    width: 100%;
}

.result-label {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-note {
    font-size: 0.9rem;
    color: #3b82f6;
    font-style: italic;
    margin: 0;
}

/* Error Messages */
.calculator-errors {
    max-width: 700px;
    margin: 1rem auto 0;
}

.error-text {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    margin: 0;
}

.error-text.active {
    display: block;
}

/* Result Explanation */
.result-explanation {
    padding: 3rem 0;
    background-color: #ffffff;
}

.result-explanation h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.result-explanation p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Limitations Section */
.limitations {
    padding: 3rem 0;
    background-color: #fffbeb;
}

.limitations h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.limitation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.limitation-item {
    background-color: #ffffff;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1.5rem;
}

.limitation-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #92400e;
}

.limitation-item p {
    font-size: 0.9rem;
    color: #78716c;
    line-height: 1.6;
    margin: 0;
}

/* Size Chart Section */
.size-chart-section {
    padding: 3rem 0;
    background-color: #ffffff;
}

.size-chart-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.size-chart-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.size-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.size-table thead {
    background-color: #f9fafb;
}

.size-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #d1d5db;
}

.size-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.size-table tbody tr:hover {
    background-color: #f9fafb;
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

.chart-note {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Related Calculators */
.related-calculators {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.related-calculators h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-card h3 {
    font-size: 1.15rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.related-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 3rem 0;
    background-color: #fef2f2;
}

.disclaimer-section h2 {
    color: #991b1b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.disclaimer-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    color: #7f1d1d;
    line-height: 1.7;
}

/* FAQ on Calculator Pages */
.faq {
    padding: 3rem 0;
    background-color: #ffffff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    max-width: 750px;
    margin: 0 auto 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1d4ed8;
    font-weight: 700;
}

.faq-item p {
    color: #4b5563;
    line-height: 1.7;
}

/* Mobile Responsive - Calculator Pages */
@media (max-width: 768px) {
    .calculator-container {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .limitation-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    
    .size-table {
        font-size: 0.9rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 1.25rem;
    }

    .input-field {
        padding: 0.75rem;
    }

    .result-value {
        font-size: 2rem;
    }
}

/* International Calculator - Multi-System Display */
.size-comparison {
    width: 100%;
}

.size-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dbeafe;
}

.size-row:last-child {
    border-bottom: none;
}

.size-label {
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
}

.size-output {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .size-row {
        padding: 0.6rem 0.75rem;
    }
    
    .size-label {
        font-size: 0.85rem;
    }
    
    .size-output {
        font-size: 1rem;
    }
}

/* Quick Reference Table */
.quick-reference {
    padding: 60px 0;
    background: #f8f9fa;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reference-table th,
.reference-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.reference-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.reference-table tr:hover {
    background: #f8f9fa;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tip-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tip-item h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Featured Card */
.card-featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section a {
    color: #ffd700;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.resource-card {
    background: white;
    padding: 32px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.resource-card h3 {
    margin-bottom: 8px;
}


/* Eu-To-Us*/

/* Quick Reference Section */
.quick-reference {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2rem 0;
    margin: 2rem 0;
}

.quick-reference h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-ref-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-ref-label {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.quick-ref-arrow {
    color: #9ca3af;
}

.quick-ref-value {
    font-weight: 500;
    color: #374151;
}

.quick-ref-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Input Help Text */
.input-help {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Related Cards Enhancement */
.related-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-ref-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-ref-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
}
