/*
Theme Name: Forex Signals Pro Lite
Theme URI: https://example.com/
Author: Custom GPT
Author URI: https://example.com/
Description: Lightweight forex trading signal theme with manual payment, user dashboard, and referral system.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forex-signals-pro-lite
*/

/* Base */
html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout helpers */
.fsp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER & MENU ===== */

.fsp-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.fsp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.fsp-logo a {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

/* WP menu wrapper */
.fsp-main-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.95rem;
}

/* ul produced by wp_nav_menu */
.fsp-menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.fsp-menu-list li {
    margin: 0;
    padding: 0;
}

.fsp-menu-list a {
    font-weight: 500;
    color: #2563eb;
}

.fsp-menu-list a:hover {
    text-decoration: underline;
}

/* Dashboard / CTA button in header */
.fsp-nav-cta {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
}

/* ===== DARK / LIGHT TOGGLE ===== */

.fsp-theme-toggle {
    width: 54px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #111827;
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    position: relative;
}

.fsp-theme-toggle-inner {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.2s ease-in-out;
}

/* Light mode icon (sun) default hidden, we use text icons */
.fsp-theme-toggle[data-mode="light"] {
    background: #ffffff;
}

.fsp-theme-toggle[data-mode="light"] .fsp-theme-toggle-inner {
    transform: translateX(26px);
}

/* ===== CARDS, SECTIONS, TABLES, FORMS, DASHBOARD (unchanged from before, only pasted) ===== */

.fsp-hero {
    padding: 2.5rem 0 1.5rem 0;
}

.fsp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: center;
}

.fsp-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.fsp-hero-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.fsp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.fsp-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.fsp-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.fsp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.fsp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
}

.fsp-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.5rem;
}

.fsp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fsp-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.fsp-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #0e7490;
}

.fsp-signal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fsp-signal-table th,
.fsp-signal-table td {
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.fsp-signal-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.fsp-signal-status-win {
    font-weight: 600;
    color: #16a34a;
}

.fsp-signal-status-loss {
    font-weight: 600;
    color: #dc2626;
}

.fsp-section {
    margin: 1.75rem 0;
}

.fsp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fsp-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.fsp-section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.fsp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.fsp-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.3rem 0;
}

.fsp-price span {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.fsp-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.fsp-list li {
    margin-bottom: 0.3rem;
}

.fsp-tag-muted {
    font-size: 0.75rem;
    color: #9ca3af;
}

.fsp-footer {
    margin-top: 2.75rem;
    padding: 1.5rem 0 2rem 0;
    border-top: 1px solid #e5e7eb;
    font-size: 0.82rem;
    color: #6b7280;
    background: #f9fafb;
}

.fsp-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.fsp-footer-social {
    display: flex;
    gap: 0.75rem;
}

.fsp-footer-social a {
    font-size: 0.9rem;
    font-weight: 500;
}

.fsp-badge-small {
    font-size: 0.7rem;
    padding: 0.13rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.fsp-form {
    display: grid;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.fsp-form label {
    font-weight: 500;
    margin-bottom: 0.15rem;
    display: block;
}

.fsp-form input[type="text"],
.fsp-form input[type="email"],
.fsp-form input[type="password"],
.fsp-form input[type="number"],
.fsp-form textarea,
.fsp-form select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.9rem;
}

.fsp-form textarea {
    min-height: 80px;
}

.fsp-form-note {
    font-size: 0.8rem;
    color: #6b7280;
}

.fsp-alert {
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.fsp-alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.fsp-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.fsp-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.fsp-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
}

.fsp-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.fsp-metric-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5e7eb;
    font-size: 0.83rem;
}

.fsp-metric-label {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.fsp-metric-value {
    font-size: 1.05rem;
    font-weight: 600;
}

.fsp-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #fefce8;
    border: 1px solid #facc15;
    font-size: 0.75rem;
    color: #854d0e;
}

.fsp-scroll {
    max-height: 260px;
    overflow: auto;
}

/* ===== DARK MODE ===== */
.fsp-dark {
    background: #020617;
    color: #e5e7eb;
}

.fsp-dark body {
    background: #020617;
}

.fsp-dark .fsp-header {
    background: #020617;
    border-bottom-color: #111827;
}

.fsp-dark .fsp-logo a {
    color: #e5e7eb;
}

.fsp-dark .fsp-menu-list a {
    color: #60a5fa;
}

.fsp-dark .fsp-card {
    background: #020617;
    border-color: #111827;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

.fsp-dark .fsp-footer {
    background: #020617;
    border-top-color: #111827;
    color: #9ca3af;
}

.fsp-dark .fsp-btn-primary {
    background: #2563eb;
}

.fsp-dark .fsp-btn-outline {
    background: transparent;
    color: #e5e7eb;
    border-color: #4b5563;
}

.fsp-dark .fsp-form input[type="text"],
.fsp-dark .fsp-form input[type="email"],
.fsp-dark .fsp-form input[type="password"],
.fsp-dark .fsp-form input[type="number"],
.fsp-dark .fsp-form textarea,
.fsp-dark .fsp-form select {
    background: #020617;
    border-color: #111827;
    color: #e5e7eb;
}

.fsp-dark .fsp-signal-table th,
.fsp-dark .fsp-signal-table td {
    border-bottom-color: #111827;
}

/* Responsive */
@media (max-width: 800px) {
    .fsp-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .fsp-main-menu {
        width: 100%;
        justify-content: space-between;
    }

    .fsp-menu-list {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .fsp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fsp-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ===== MENU BUTTON / SIGN-IN STYLE ===== */
.fsp-menu-list li:last-child a,
.fsp-nav-cta {
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fsp-menu-list li:last-child a:hover,
.fsp-nav-cta:hover {
    text-decoration: none;
    background: #1d4ed8;
    filter: brightness(0.95);
}


/* ===== IMPROVED TEXT VISIBILITY ===== */
body {
    line-height: 1.5;
}

.fsp-hero-subtitle,
.fsp-section-subtitle,
.fsp-list,
.fsp-form-note {
    color: #374151;
}

.fsp-tag-muted {
    color: #6b7280;
}

.fsp-dark,
.fsp-dark body {
    color: #e5e7eb;
}

.fsp-dark a {
    color: #60a5fa;
}

.fsp-dark .fsp-tag-muted {
    color: #9ca3af;
}

/* ===== BUTTON ANIMATION ===== */
.fsp-btn-primary,
.fsp-btn-outline,
.fsp-nav-cta,
.fsp-menu-list li:last-child a {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

.fsp-btn-primary:hover,
.fsp-btn-outline:hover,
.fsp-nav-cta:hover,
.fsp-menu-list li:last-child a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.fsp-btn-primary:active,
.fsp-btn-outline:active,
.fsp-nav-cta:active,
.fsp-menu-list li:last-child a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.fsp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fsp-reveal.fsp-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== ADS STYLES ===== */
.fsp-ad-box {
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
}

.fsp-ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}
