/* ============================================================
   RetailerSoft Public Pages — Shared Brand Styles (rs-* prefix)
   See PUBLIC-STYLE-GUIDE.md for usage reference.
   ============================================================ */

/* ── Hero Banner ── */
.rs-hero {
    background: linear-gradient(315deg, #1a4a2e 0%, #2d7a4a 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.rs-hero-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.rs-hero-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
}

.rs-hero-accent {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.rs-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.rs-hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0.25rem 0 0;
}

/* Compact hero variant for internal/admin pages */
.rs-hero-compact {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.rs-hero-compact .rs-hero-title {
    font-size: 1.4rem;
}
.rs-hero-compact .rs-hero-subtitle {
    font-size: 0.9rem;
}
.rs-hero-compact .rs-hero-accent {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

/* ── Callout Boxes ── */
.rs-callout {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.rs-callout-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #78350f;
}

.rs-callout-info {
    background-color: #f0faf3;
    border-left: 4px solid #2d6e3f;
    color: #1a3a2a;
}

.rs-callout-icon {
    font-size: 1.25rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.rs-callout p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

/* ── Cards ── */
.rs-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
}

.rs-card-primary {
    border-top: 4px solid #2d6e3f;
}

.rs-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rs-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rs-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.rs-card-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
}

.rs-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Feature List ── */
.rs-feature-list {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ── Badges ── */
.rs-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.rs-badge-success {
    background-color: #dcfce7;
    color: #166534;
}

/* ── Buttons ── */
.rs-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.rs-btn-primary {
    background-color: #2d6e3f;
    color: white;
}

.rs-btn-primary:hover {
    background-color: #1a4a2e;
    color: white;
}

.rs-btn-secondary {
    background-color: white;
    color: #2d6e3f;
    border: 1.5px solid #2d6e3f;
}

.rs-btn-secondary:hover {
    background-color: #f0faf3;
    color: #2d6e3f;
}

.rs-btn-ghost {
    background: none;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.45rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.rs-btn-ghost:hover {
    background-color: #f1f5f9;
}

/* ── Active Toggle Button (replaces btn-primary for toggle groups) ── */
.rs-btn-active {
    background-color: #2d6e3f;
    border-color: #2d6e3f;
    color: white;
}

.rs-btn-active:hover,
.rs-btn-active:focus {
    background-color: #1a4a2e;
    border-color: #1a4a2e;
    color: white;
}

/* ── Links ── */
.rs-link {
    color: #2d6e3f;
    font-size: 0.9rem;
    text-decoration: none;
}

.rs-link:hover {
    text-decoration: underline;
}

/* ── Section Titles ── */
.rs-section-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

/* ── Info Grid ── */
.rs-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.rs-info-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    color: #374151;
}

/* ── Brand Utilities ── */
.rs-text-brand { color: #2d6e3f; }
.rs-bg-brand-light { background-color: #f0faf3; }
.rs-border-brand { border-color: #2d6e3f !important; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .rs-hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.25rem;
    }

    .rs-hero-title {
        font-size: 1.5rem;
    }

    .rs-card-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .rs-card-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .rs-info-grid {
        grid-template-columns: 1fr;
    }
}
