/**
 * My Account Hub — Card grid styles
 * @since 0.3.0
 */

/* ── Layout ───────────────────────────────────────────────── */
.sf-hub {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

.sf-hub-header {
    margin-bottom: 30px;
}

.sf-hub-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
}

.sf-hub-welcome {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ── Sections ─────────────────────────────────────────────── */
.sf-hub-section {
    margin-bottom: 28px;
}

.sf-hub-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin: 0 0 10px;
    padding: 0;
    border: none;
}

/* ── Card grid ────────────────────────────────────────────── */
.sf-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
}

/* ── Card ─────────────────────────────────────────────────── */
.sf-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sf-hub-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

/* ── Card internals ───────────────────────────────────────── */
.sf-hub-card-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.sf-hub-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sf-hub-card-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
}

.sf-hub-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* ── Card sub-links ───────────────────────────────────────── */
.sf-hub-card-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-hub-card-links li {
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.sf-hub-card-links a {
    color: #3498db;
    text-decoration: none;
}

.sf-hub-card-links a:hover {
    color: #2176ad;
    text-decoration: underline;
}

/* ── Badge ────────────────────────────────────────────────── */
.sf-hub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ── Footer ───────────────────────────────────────────────── */
.sf-hub-footer {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.sf-hub-footer-link {
    color: #888;
    text-decoration: none;
}

.sf-hub-footer-link:hover {
    color: #333;
    text-decoration: none;
}

/* ── Login prompt ─────────────────────────────────────────── */
.sf-hub-login-prompt {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #666;
}

.sf-hub-login-prompt a {
    color: #3498db;
    font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .sf-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-hub-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .sf-hub-grid {
        grid-template-columns: 1fr;
    }

    .sf-hub {
        padding: 20px 15px 30px;
    }
}
