/* ============================================================
   layout.css — Page Structure
   ============================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--dur-base) var(--ease),
                color var(--dur-base) var(--ease);
}

/* ── Header ── */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-header);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    transition: background var(--dur-base), box-shadow var(--dur-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Main Container ── */
.container {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 16px;
}

/* ── Intro / Hero ── */
.intro {
    text-align: center;
    margin-bottom: 32px;
}

.box-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.box-logo img {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(13,110,253,0.2));
}

.intro h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.intro p {
    font-size: 16px;
    color: var(--text-muted);
}

/* ── Cards Grid ── */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 24px 16px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    transition: background var(--dur-base), color var(--dur-base);
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--dur-fast);
}

footer a:hover { opacity: 0.75; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; gap: 12px; }
    .intro h1  { font-size: 22px; }
    .intro p   { font-size: 14px; }
    .box-logo img { width: 100px; height: 100px; }
    .container { margin: 20px auto; }
}

@media (max-width: 380px) {
    .header-logo { width: 36px; height: 36px; }
    .icon-button span { display: none; }
}
