/*
Theme Name: SyncXP
Description: Minimal theme for SyncXP expense software
Version: 1.1
*/

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a3e;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #1a1a3e; text-decoration: none; }
a:hover { opacity: 0.8; }

/* Hide page title */
.page .entry-title,
.home .entry-title,
h1.wp-block-post-title,
.page-title { display: none; }

/* ===== LEFT SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #1a1a3e;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    z-index: 100;
}

.sidebar-logo {
    margin-bottom: 48px;
    text-align: center;
}

.sidebar-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.sidebar-links {
    list-style: none;
    flex: 1;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

.sidebar-cta {
    background: linear-gradient(135deg, #43cea2, #3fb8d4) !important;
    color: #fff !important;
    text-align: center;
    font-weight: 500;
    margin-top: 8px;
}

.sidebar-cta:hover {
    opacity: 0.9 !important;
}

.sidebar-cta-demo {
    background: rgba(78, 205, 196, 0.15) !important;
    color: #4ECDC4 !important;
    text-align: center;
    font-weight: 600 !important;
    margin-top: 16px;
    border: 1px solid rgba(78, 205, 196, 0.4);
}

.sidebar-cta-demo:hover {
    background: rgba(78, 205, 196, 0.25) !important;
    color: #fff !important;
}

.sidebar-cta-demo::before {
    content: "🧪 ";
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.sidebar-social a {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-social a:hover {
    color: #fff;
    opacity: 1;
}

/* ===== MAIN CONTENT (offset by sidebar) ===== */
.site-content {
    margin-left: 220px;
    max-width: 100% !important;
    padding: 0 !important;
}

.entry-content,
.wp-site-blocks {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 60px 40px 80px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e0ece8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1a1a3e !important;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    background: none;
    border: none;
    box-shadow: none;
    font-size: inherit;
}

.hero img {
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    color: #1a1a3e;
}

.hero p {
    font-size: 28px !important;
    color: #1a1a3e !important;
    font-weight: 600 !important;
    margin: 20px auto 20px auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* Target any generic elements with text in hero (for tagline text) */
.hero > div,
.hero > span {
    font-size: 28px !important;
    color: #1a1a3e !important;
    font-weight: 600 !important;
    margin: 20px auto 20px auto !important;
}

.hero .btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px !important;
    background: linear-gradient(135deg, #43cea2, #3fb8d4);
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500 !important;
}

.hero .btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Ensure all hero children stack vertically */
.hero > * {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero img {
    width: 280px !important;
    max-width: 100%;
}

.hero a.btn {
    display: inline-block !important;
    width: auto !important;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 48px;
    color: #1a1a3e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 0;
}

.features-grid .feature h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a3e;
}

.features-grid .feature p {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: 60px 40px;
    background: linear-gradient(160deg, #f0fdf8 0%, #e8f4fd 100%);
    border-top: 1px solid #e0ece8;
    border-bottom: 1px solid #e0ece8;
    text-align: center;
}

.pricing h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a3e;
}

.pricing .subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing .price-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e0ece8;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing .price-card .edd_download_purchase_form,
.pricing .price-card .edd_purchase_submit_wrapper {
    margin-top: auto;
}

.pricing .price-card.primary {
    border: 2px solid #43cea2;
    position: relative;
}

.pricing .price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #43cea2, #3fb8d4);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.pricing .price-card.secondary {
    border: 2px solid #43cea2;
}
.pricing .price-card.secondary .price-badge {
    background: linear-gradient(135deg, #43cea2, #3fb8d4);
}

.pricing .price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a3e;
}

.pricing .price-label {
    color: #666;
    margin-bottom: 20px;
    font-size: 12px;
}

.pricing .price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    padding: 0;
}

.pricing .price-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.pricing .price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43cea2;
    font-weight: 700;
}

.pricing .price-features li:last-child {
    border-bottom: none;
}

.pricing .btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 14px;
    background: linear-gradient(135deg, #43cea2, #3fb8d4);
    color: #fff !important;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    width: 100%;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
}

.pricing .btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.pricing .btn-outline {
    background: transparent !important;
    border: 2px solid #1a1a3e !important;
    color: #1a1a3e !important;
}

.pricing .btn-outline:hover {
    background: #1a1a3e !important;
    color: #fff !important;
    opacity: 1;
}

/* Hide EDD price prefix on purchase buttons */
.pricing .edd_price_option_name,
.pricing .edd-add-to-cart-label .edd-loading,
.pricing .edd_purchase_submit_wrapper .edd_price {
    display: none !important;
}

/* Show button label text normally */
.pricing .edd-add-to-cart-label {
    font-size: 14px !important;
    color: inherit;
}

.pricing .price-card.secondary .edd-add-to-cart-label {
    color: #fff !important;
}

.pricing .edd_purchase_submit_wrapper {
    margin: 0;
    padding: 0;
}

.pricing .edd_purchase_submit_wrapper .edd-add-to-cart {
    display: inline-block !important;
    padding: 10px 30px !important;
    font-size: 14px !important;
    background: linear-gradient(135deg, #43cea2, #3fb8d4) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: 0.05em !important;
    width: 100% !important;
    text-decoration: none !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

/* Token card button - now matching primary with dark blue */
.pricing .price-card.secondary .edd_purchase_submit_wrapper .edd-add-to-cart,
.pricing .edd_purchase_submit_wrapper .edd-add-to-cart.btn-outline {
    display: inline-block !important;
    background: #1a1a3e !important;
    border: none !important;
    color: #fff !important;
}

.pricing .price-card.secondary .edd_purchase_submit_wrapper .edd-add-to-cart:hover,
.pricing .edd_purchase_submit_wrapper .edd-add-to-cart.btn-outline:hover {
    opacity: 0.9 !important;
    color: #fff !important;
}

/* Hide EDD no-js fallback buttons - use JavaScript buttons only */
input[type="submit"][name="edd_purchase_download"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide EDD checkout link - show only "Buy Now" button */
.pricing .edd_purchase_submit_wrapper .edd_go_to_checkout {
    display: none !important;
}


/* ===== PAGE FOOTER ===== */
.page-footer {
    padding: 48px 40px;
    background: #fff;
    border-top: 1px solid #e0ece8;
}

.page-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.social-links {
    text-align: center;
    margin-bottom: 32px;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    font-size: 12px;
    color: #1a1a3e;
}

.newsletter {
    text-align: center;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter p {
    font-size: 14px;
    margin-bottom: 16px;
    color: #666;
}

.newsletter form {
    display: flex;
    gap: 8px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0ece8;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #43cea2, #3fb8d4);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
}

.footer-links {
    text-align: center;
    border-top: 1px solid #e0ece8;
    padding-top: 40px;
    color: #999;
    font-size: 13px;
}

.footer-links a {
    color: #999;
}

/* ===== SUPPORT SECTION ===== */
.support-section {
    padding: 60px 40px;
    text-align: center;
    background: #fff;
}

.support-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a3e;
}

.support-section .subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.support-card {
    padding: 40px 32px;
    border: 1px solid #e0ece8;
    border-radius: 12px;
    background: #fafffe;
    transition: box-shadow 0.2s;
}

.support-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.support-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1a1a3e;
}

.support-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.support-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #3fb8d4 !important;
    letter-spacing: 0.02em;
}

.support-link:hover {
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sidebar-nav {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 12px 16px;
        align-items: center;
    }
    .sidebar-logo { margin-bottom: 0; margin-right: 16px; }
    .sidebar-icon { width: 36px; height: 36px; }
    .sidebar-links { display: flex; gap: 8px; flex: 1; }
    .sidebar-links li { margin-bottom: 0; }
    .sidebar-links a { padding: 6px 10px; font-size: 12px; }
    .sidebar-social { display: none; }
    .sidebar-basket { display: none !important; }
    #lang-menu, #lang-btn { display: none !important; }
    .site-content { margin-left: 0; margin-bottom: 64px; }
    .hero { padding: 80px 24px; }
    .hero h1 { font-size: 36px; }
    .features { padding: 60px 24px; }
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .pricing { padding: 60px 24px; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* Language menu hover */
#lang-menu button:hover { background: rgba(255,255,255,0.08) !important; }

/* WP Admin bar offset */
.admin-bar .sidebar-nav { top: 32px; height: calc(100vh - 32px); }
