/**
 * Nexus Admin Pages
 * Lightweight, modern styling for Home & Settings.
 *
 * @package Nexus
 * @since 4.1.0
 */

/* ---- Layout ---- */
.nexus-admin {
    max-width: 960px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ---- Hero ---- */
.nexus-hero {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    color: #fff;
    padding: 40px 36px;
    border-radius: 12px;
    margin-bottom: 28px;
    position: relative;
}

.nexus-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.nexus-hero-desc {
    margin: 0 0 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 560px;
}

.nexus-version {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.nexus-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.nexus-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    line-height: 1.4;
}

.nexus-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nexus-btn-primary {
    background: #ff4d00;
    color: #fff;
}

.nexus-btn-primary:hover,
.nexus-btn-primary:focus {
    color: #fff;
    background: #e64400;
}

.nexus-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nexus-btn-secondary:hover,
.nexus-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.nexus-btn-accent {
    background: #ff4d00;
    color: #fff;
}

.nexus-btn-accent:hover,
.nexus-btn-accent:focus {
    color: #fff;
    background: #e64400;
}

/* Settings page primary button override */
.nexus-settings-page .nexus-btn-primary {
    background: #ff4d00;
    color: #fff;
    border: none;
}

.nexus-settings-page .nexus-btn-primary:hover,
.nexus-settings-page .nexus-btn-primary:focus {
    background: #e64400;
    color: #fff;
}

/* ---- Sections ---- */
.nexus-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 20px;
}

.nexus-section h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e2f;
}

/* ---- Cards ---- */
.nexus-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nexus-card {
    background: #f9f9fb;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 22px 20px;
    transition: border-color 0.2s;
}

.nexus-card:hover {
    border-color: #ff4d00;
}

.nexus-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.nexus-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e2f;
}

.nexus-card p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}

.nexus-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #ff4d00;
    text-decoration: none;
}

.nexus-card-link:hover {
    text-decoration: underline;
    color: #e64400;
}

/* ---- Arq Promo ---- */
.nexus-arq-promo {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    border: none;
    color: #fff;
}

.nexus-arq-promo h2 {
    color: #fff;
}

.nexus-arq-promo p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 16px;
}

.nexus-arq-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nexus-arq-promo .nexus-card-link {
    color: rgba(255, 255, 255, 0.7);
}

.nexus-arq-promo .nexus-card-link:hover {
    color: #fff;
}

/* ---- Links Grid ---- */
.nexus-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nexus-links-grid a {
    display: block;
    padding: 12px 16px;
    background: #f9f9fb;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1e1e2f;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.nexus-links-grid a:hover {
    border-color: #ff4d00;
    color: #ff4d00;
}

/* ---- Settings Page ---- */
.nexus-settings-page h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e2f;
}

.nexus-settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.nexus-settings-section h2 {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #1e1e2f;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.nexus-field {
    margin-bottom: 20px;
}

.nexus-field:last-child {
    margin-bottom: 0;
}

.nexus-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.nexus-field input[type="number"],
.nexus-field input[type="text"] {
    width: 140px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
}

.nexus-field input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.nexus-field .description {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.nexus-field-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.nexus-field-toggle .description {
    margin-left: 26px;
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .nexus-cards,
    .nexus-links-grid {
        grid-template-columns: 1fr;
    }

    .nexus-hero {
        padding: 28px 22px;
    }

    .nexus-hero h1 {
        font-size: 22px;
    }

    .nexus-hero-actions {
        flex-direction: column;
    }

    .nexus-version {
        position: static;
        display: block;
        margin-bottom: 14px;
    }
}
