/* =============================================================
   AethCore — layout.css
   Page structure, module containers, and welcome box.
   ============================================================= */

/* --- Page layout --- */

#wrap {
    max-width: 980px;
    margin: 14px auto;
    padding: 0 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

#sidebar {
    width: 236px;
    flex-shrink: 0;
}

#main {
    flex: 1;
    min-width: 0;
}

/* --- Module container --- */

.module {
    background: #f8f8f8;
    border: 1px solid #b8b8b8;
    margin-bottom: 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.module-header {
    background: linear-gradient(180deg, #555 0%, #3c3c3c 100%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-body {
    padding: 8px;
}

.empty-state {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    padding: 6px 0;
}

/* Module header link (e.g. "See all →" inline in header) */
.module-header-link {
    float: right;
    font-size: 10px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #ccc;
    line-height: inherit;
}

.module-header-link:hover {
    color: #fff;
    text-decoration: none;
}

.module-header-link-full {
    color: inherit;
    text-decoration: none;
}

.module-header-link-full:hover {
    color: #ddd;
}

/* "See all" footer link inside module body */
.module-see-more {
    margin-top: 6px;
    font-size: 11px;
    text-align: right;
}

/* Module intro text */
.module-intro {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

/* --- Footer --- */

#footer {
    max-width: 980px;
    margin: 14px auto 20px;
    padding: 10px 10px 0;
    border-top: 1px solid #b8b8b8;
    font-size: 11px;
    color: #888;
}

#footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer-links {
    list-style: none;
    display: flex;
    gap: 12px;
}

#footer-links a {
    color: #888;
}

#footer-links a:hover {
    color: #c85000;
}

/* --- Static content pages (about, legal) --- */

.about-body h3,
.legal-body h3 {
    font-size: 13px;
    margin: 14px 0 4px;
}

.about-body h3:first-child,
.legal-body h3:first-child {
    margin-top: 0;
}

.about-body p,
.legal-body p {
    margin-bottom: 6px;
    line-height: 1.5;
}

.about-body ul,
.legal-body ul {
    margin: 4px 0 8px 20px;
    line-height: 1.6;
}

.legal-updated {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

/* --- Welcome box (home page) --- */

.welcome-box {
    background: #f8f8f8;
    border: 1px solid #b8b8b8;
    padding: 24px 20px;
    margin-bottom: 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.welcome-box h2 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}

.welcome-box p {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.welcome-cta {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

/* Flash message — one-time success banner */
.flash-message {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 3px;
    font-size: 13px;
}
