/* style.css - industrial theme, steel blue, modern card layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #eef2f5;
    color: #1e2b3c;
    line-height: 1.5;
}

/* ad placeholders styling */
.ad-banner {
    background: #f0f3f8;
    border: 2px dashed #9aa9b9;
    color: #2c3e50;
    text-align: center;
    padding: 1.5rem;
    margin: 1.5rem auto;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 1200px;
}
.top-banner, .bottom-ad { width: 100%; }
.in-content-ad { margin: 2rem 0; }
.sidebar-ad {
    background: #f0f3f8;
    border: 2px dashed #9aa9b9;
    border-radius: 12px;
    padding: 2rem 0.5rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: sidebar;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    grid-template-areas: 
        "seo seo"
        "content sidebar"
        "output output"
        "ad ad";
}

.seo-content {
    grid-area: seo;
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,20,40,0.08);
}

.seo-content h1 {
    font-size: 2.2rem;
    color: #0b2b40;
    border-left: 8px solid #2a6d9c;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.seo-content h2 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
    color: #1a4b6d;
}
.seo-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #2b3f4e;
}
.seo-content section {
    border-bottom: 1px solid #dde3ea;
    padding-bottom: 1rem;
}

.calculator-card {
    grid-area: content;
    background: white;
    border-radius: 28px;
    padding: 2rem 1.8rem;
    box-shadow: 0 20px 35px -8px rgba(0,40,70,0.15);
    border: 1px solid #d9e2ec;
}

.calculator-card h2 {
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: #0b2b40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}
.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #3a5b7a;
    margin-bottom: 0.3rem;
}
.input-group select, .input-group input {
    padding: 0.8rem 1rem;
    border: 1.5px solid #cbd6e4;
    border-radius: 16px;
    font-size: 1rem;
    transition: 0.2s;
    background: #f9fcff;
}
.input-group select:focus, .input-group input:focus {
    border-color: #2a6d9c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42,109,156,0.2);
}

button#calculateBtn {
    background: #1b5a84;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 40px;
    width: 100%;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 8px 20px rgba(27,90,132,0.3);
    margin-top: 1rem;
}
button#calculateBtn:hover {
    background: #0f4364;
    transform: scale(1.02);
}

.output-card {
    grid-area: output;
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    margin-top: 1rem;
}
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 1.2rem;
    background: #f1f6fb;
    padding: 1.8rem;
    border-radius: 24px;
}
.breakdown-item {
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    box-shadow: 0 4px 8px #e0eaf3;
    font-weight: 500;
    border-left: 6px solid #2a6d9c;
}
.breakdown-item span {
    font-size: 1.3rem;
    display: block;
    font-weight: 700;
    color: #003057;
}
.grand-total {
    font-size: 2rem;
    font-weight: 800;
    background: #0b2b40;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 60px;
    margin: 2rem 0 1.5rem;
    text-align: center;
    box-shadow: 0 10px 20px #b0c6da;
    word-break: break-word;
}
.export-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.export-buttons button {
    background: white;
    border: 2px solid #1b5a84;
    color: #1b5a84;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.15s;
}
.export-buttons button:hover {
    background: #1b5a84;
    color: white;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "seo"
            "content"
            "sidebar"
            "output"
            "ad";
    }
    .sidebar-ad {
        min-height: 150px;
    }
}