/* css/layout.css - Grids, Flexbox & Device Scaling */

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap; /* Prevents crowding on a single line */
    gap: 1rem;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand span {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Main Workspace Grid */
.app-workspace {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Left, 33% Right */
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* SEO Content & Footer */
.seo-content {
    padding: 3rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.app-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    text-align: center;
    margin-bottom: 60px; /* Space for Mobile Sticky Ad */
}

.disclaimer-section {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.app-footer nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Ad Layout Standards (AdSense compliance) */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--border-color);
    color: var(--text-secondary);
    margin: 1.5rem auto;
    overflow: hidden;
}

.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad-sidebar { width: 100%; max-width: 300px; min-height: 250px; margin: 0 auto; }
.ad-native { width: 100%; max-width: 800px; min-height: 120px; }
.ad-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    margin: 0;
    z-index: 999;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .app-workspace {
        grid-template-columns: 1fr; /* Stack into single column on tablets */
    }
}

@media (max-width: 600px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    .header-actions {
        justify-content: center;
        width: 100%;
    }
    .ad-leaderboard { max-width: 320px; height: 50px; }
}
