/* Runcalcs - Consolidated Styles */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #CE6632 0%, #732E0C 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.nav-bar {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

/* ===== HEADERS ===== */
header {
    text-align: center;
    padding: 40px 0;
    color: white;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #CE6632, #732E0C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.section-content h4 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 10px;
}

/* ===== CALCULATOR-SPECIFIC SECTIONS ===== */
.calculator-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.calculator-section:hover {
    transform: translateY(-5px);
}

.calc-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.calc-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.calc-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.calc-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ===== SPECIAL BOXES & HIGHLIGHTS ===== */
.highlight-box {
    background: linear-gradient(45deg, #CE6632, #732E0C);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-info {
    background: #f8f9fa;
    border-left: 4px solid #CE6632;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

/* ===== FORMULA SECTIONS ===== */
.formula-section {
    background: #f8f9ff;
    border-left: 4px solid #CE6632;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.formula-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.formula {
    font-family: 'Courier New', monospace;
    background: #e8ecff;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #2c3e50;
    overflow-x: auto;
}

.explanation {
    color: #555;
    font-size: 0.95rem;
    margin-top: 10px;
}

.variables {
    margin-top: 15px;
}

.variable {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.var-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #CE6632;
    min-width: 60px;
}

.var-desc {
    color: #666;
}

/* ===== ACCURACY & TIPS SECTIONS ===== */
.accuracy-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.accuracy-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    font-size: 1rem;
}

.accuracy-text {
    color: #856404;
    font-size: 0.9rem;
}

.tips-section {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.tips-title {
    font-weight: 600;
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-list {
    list-style: none;
    padding: 0;
}

.tip-list li {
    margin-bottom: 8px;
    color: #155724;
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.tip-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.table-of-contents h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    color: #CE6632;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #732E0C;
}

/* ===== TOC (HELP PAGE SPECIFIC) ===== */
.toc {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.toc-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #CE6632;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #732E0C;
}

/* ===== BUTTONS & LINKS ===== */
.back-to-home {
    text-align: center;
    margin: 50px 0;
}

.back-btn {
    background: linear-gradient(45deg, #CE6632, #732E0C);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px #732E0C;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #CE6632;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .nav-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .content-section {
        padding: 30px 25px;
    }

    .calculator-section {
        padding: 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .calc-header {
        flex-direction: column;
        text-align: center;
    }

    .calc-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ===== FOOTER (IF NEEDED) ===== */
footer {
    text-align: center;
    padding: 40px 0;
    color: rgba(255,255,255,0.7);
}