/* style.css – Custom styles for Calorie Calculator Hub */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

body {
    font-family: 'Roboto', arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    scroll-behavior: smooth;
}

.site-wrapper {
    max-width: 1160px;
    margin: 0 auto;
    background: white;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    min-height: 100vh;
}

/* Calculator.net Design Standard */
.blue-header {
    background-color: #00509d;
    color: white;
    padding: 20px 25px;
}

.nav-gray {
    background-color: #e8e8e8;
    border-bottom: 1px solid #ccc;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
}

/* ADSTERRA PLACEMENTS */
.header-ad-box {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 15px auto;
    background: #fafafa;
    border: 1px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-native-ad {
    width: 100%;
    min-height: 250px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 3rem 0;
    padding: 20px;
    text-align: center;
}

/* Calculation Hub Grid */
.calc-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    padding: 25px;
}

.input-panel {
    background: #f0f4f7;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #d1d9e0;
    height: fit-content;
}

.input-box {
    margin-bottom: 15px;
}

.input-box label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
    color: #555;
    text-transform: uppercase;
}

.std-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 15px;
    outline: none;
    transition: 0.1s;
    background: white;
    font-weight: 700;
}

.std-input:focus {
    border-color: #00509d;
    box-shadow: 0 0 4px rgba(0, 80, 157, 0.2);
}

.unit-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    padding: 8px;
    background: #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-btn.active {
    background: #00509d;
    color: white;
}

.btn-calc {
    background: #d00;
    color: white;
    padding: 14px;
    border-radius: 4px;
    font-weight: 900;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 17px;
    transition: 0.2s;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-calc:hover {
    background: #b00;
    transform: translateY(-1px);
}

/* Results UI */
.result-title {
    font-size: 22px;
    color: #00509d;
    border-bottom: 2px solid #00509d;
    margin-bottom: 20px;
    padding-bottom: 5px;
    font-weight: 900;
    text-transform: uppercase;
}

.res-main {
    font-size: 4rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -2px;
    line-height: 1;
}

/* Analysis Table */
.amort-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.amort-table th {
    background: #f2f2f2;
    color: #333;
    padding: 14px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 13px;
    font-weight: 900;
}

.amort-table td {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.active-row {
    background: #fff8e1 !important;
    font-weight: 700;
    border-left: 5px solid #d00 !important;
}

/* SEO Authority Hub Styling */
.seo-authority-box {
    padding: 50px 30px;
    border-top: 1px solid #eee;
    background: #fff;
}

.seo-authority-box h1 {
    color: #00509d;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
}

.seo-authority-box h2 {
    color: #00509d;
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 20px;
    border-left: 6px solid #d00;
    padding-left: 20px;
}

.seo-authority-box h3 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-top: 30px;
}

.seo-authority-box p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

.formula-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    font-family: monospace;
    text-align: center;
    font-weight: bold;
    color: #00509d;
    margin: 30px 0;
    font-size: 1.5rem;
    border-bottom: 4px solid #00509d;
}

/* Responsive */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .site-wrapper {
        border: none;
    }
}

@media (max-width: 640px) {
    .header-ad-box {
        height: 60px;
    }
    .res-main {
        font-size: 2.8rem !important;
    }
}