/* ============================================================
   TOOLFLUENCY — BASE UI FRAMEWORK (5-STAR VERSION)
   Clean, scientific, high-performance layout
   ============================================================ */

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    height: 100%;
}

/* --- GLOBAL PAGE LAYOUT --- */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: auto;
}

/* --- LEFT NAVIGATION --- */
.left-nav {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: max-content;
    position: sticky;
    top: 24px;
}

.left-nav h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #555;
}

.left-nav ul {
    list-style: none;
    margin-bottom: 8px;
}

.left-nav li a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    color: #0366d6;
    text-decoration: none;
}

.left-nav li a:hover {
    text-decoration: underline;
}

/* --- PAGE CONTENT COLUMN --- */
.page-content {
    max-width: 900px;
}

/* --- TITLE SYSTEM --- */
.tool-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tool-subtext {
    margin-bottom: 24px;
    font-size: 15px;
    color: #555;
    max-width: 620px;
}

/* --- CALCULATOR BOX --- */
.calculator-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px 28px;
    margin-bottom: 32px;
}

.calc-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.calc-col {
    flex: 1;
}

.calc-col h3 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
}

label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccd2d9;
    border-radius: 6px;
    font-size: 15px;
}

/* --- BUTTON --- */
.calc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3167ff, #5f87ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* --- RESULTS BOX --- */
.results-box {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-box h3 {
    margin-bottom: 8px;
}

/* --- DESCRIPTION CARD --- */
.tool-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tool-card h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.tool-card ul {
    margin: 12px 0 12px 20px;
}

/* --- ADS --- */
.ad-top,
.ad-inline {
    background: #e1e6ee;
    color: #666;
    border-radius: 12px;
    padding: 38px 24px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 32px;
}

/* --- RIGHT SIDEBAR AD --- */
.right-ad {
    background: #e1e6ee;
    border-radius: 12px;
    padding: 32px 20px;
    color: #666;
    position: sticky;
    top: 24px;
    height: 80vh;
    text-align: center;
}

/* --- AFFILIATE PRODUCT CARDS --- */
#affiliateProducts .aff-card {
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

#affiliateProducts .aff-card:hover {
    background: #f1f5ff;
}

/* --- FOOTER --- */
.footer {
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 1050px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .left-nav,
    .right-ad {
        display: none;
    }
}
