/*
Theme Name: Spaceman Gaming
Theme URI: https://spacemangaming.vineyard.haus
Author: Henry Skrivanek
Description: Spaceman Gaming theme — blog, games, reviews, credits, leaderboards, DevHub, Bonus Vault, and subscriptions.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: spacemangaming
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Light / Dark / Auto)
   ============================================= */

:root,
[data-theme="light"] {
    --bg:           #ffffff;
    --bg-alt:       #f4f4f5;
    --surface:      #ffffff;
    --border:       #e2e2e7;
    --text:         #1a1a2e;
    --text-muted:   #6b6b80;
    --accent:       #3b6fd4;
    --accent-hover: #2d58b0;
    --accent-text:  #ffffff;
    --nav-bg:       #1a1a2e;
    --nav-text:     #e8e8f0;
    --nav-hover:    #3b6fd4;
    --footer-bg:    #111122;
    --footer-text:  #c0c0d0;
    --card-shadow:  0 1px 4px rgba(0,0,0,0.08);
    --progress-bg:  #e2e2e7;
    --progress-fill:#3b6fd4;
    --tag-bg:       #e8edf8;
    --tag-text:     #2d58b0;
    --star-color:   #f5a623;
}

[data-theme="dark"] {
    --bg:           #0f0f1a;
    --bg-alt:       #161628;
    --surface:      #1c1c30;
    --border:       #2a2a42;
    --text:         #e8e8f8;
    --text-muted:   #8888a8;
    --accent:       #5b8ef4;
    --accent-hover: #7aaaf8;
    --accent-text:  #ffffff;
    --nav-bg:       #0c0c1a;
    --nav-text:     #c8c8e0;
    --nav-hover:    #5b8ef4;
    --footer-bg:    #080812;
    --footer-text:  #8888a8;
    --card-shadow:  0 1px 6px rgba(0,0,0,0.4);
    --progress-bg:  #2a2a42;
    --progress-fill:#5b8ef4;
    --tag-bg:       #1e2840;
    --tag-text:     #7aaaf8;
    --star-color:   #f5a623;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:           #0f0f1a;
        --bg-alt:       #161628;
        --surface:      #1c1c30;
        --border:       #2a2a42;
        --text:         #e8e8f8;
        --text-muted:   #8888a8;
        --accent:       #5b8ef4;
        --accent-hover: #7aaaf8;
        --accent-text:  #ffffff;
        --nav-bg:       #0c0c1a;
        --nav-text:     #c8c8e0;
        --nav-hover:    #5b8ef4;
        --footer-bg:    #080812;
        --footer-text:  #8888a8;
        --card-shadow:  0 1px 6px rgba(0,0,0,0.4);
        --progress-bg:  #2a2a42;
        --progress-fill:#5b8ef4;
        --tag-bg:       #1e2840;
        --tag-text:     #7aaaf8;
        --star-color:   #f5a623;
    }
}

/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background 0.2s, color 0.2s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin-bottom: 0.5em; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1em; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 0.65em 1em; border: 1px solid var(--border); text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }

/* =============================================
   SKIP LINK
   ============================================= */

.skip-link {
    position: absolute; top: -999px; left: 0;
    background: var(--accent); color: #fff;
    padding: 0.5em 1em; z-index: 9999;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* =============================================
   NAVIGATION
   ============================================= */

#site-header {
    background: var(--nav-bg);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 1.5rem; gap: 1rem;
    height: 60px;
}

/* Logo */
.site-logo {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--nav-text); font-weight: 700;
    font-size: 1.1rem; text-decoration: none; flex-shrink: 0;
}
.site-logo img { width: 40px; height: 40px; border-radius: 50%; }
.site-logo:hover { color: var(--nav-hover); text-decoration: none; }

/* Primary nav */
#primary-nav {
    display: flex; align-items: center;
    list-style: none; padding: 0; margin: 0;
    gap: 0; flex: 1;
}

#primary-nav > li { position: relative; }

#primary-nav > li > a,
#primary-nav > li > button {
    display: block; padding: 0 0.85rem;
    color: var(--nav-text); font-size: 0.9rem;
    line-height: 60px; white-space: nowrap;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
#primary-nav > li > a:hover,
#primary-nav > li > button:hover,
#primary-nav > li.current-menu-item > a {
    color: var(--nav-hover); text-decoration: none;
    background: rgba(255,255,255,0.05);
}

/* Dropdown */
#primary-nav .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--nav-bg); min-width: 180px;
    border: 1px solid var(--border); border-top: none;
    list-style: none; padding: 0.4rem 0; z-index: 200;
    box-shadow: var(--card-shadow);
}
#primary-nav .has-dropdown:focus-within .dropdown-menu,
#primary-nav .has-dropdown:hover .dropdown-menu,
#primary-nav .has-dropdown.open .dropdown-menu { display: block; }

#primary-nav .dropdown-menu li a {
    display: block; padding: 0.5rem 1rem;
    color: var(--nav-text); font-size: 0.875rem;
    white-space: nowrap;
}
#primary-nav .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.07); text-decoration: none;
    color: var(--nav-hover);
}

/* Nav right-side controls */
.nav-right {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}

/* Bonus Vault / Credits badge */
.nav-credits-link {
    color: var(--nav-text); font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px; white-space: nowrap;
}
.nav-credits-link:hover { color: var(--nav-hover); text-decoration: none; border-color: var(--nav-hover); }

/* Theme toggle */
.theme-toggle-wrap { position: relative; }
.theme-toggle-btn {
    background: none; border: 1px solid rgba(255,255,255,0.25);
    color: var(--nav-text); padding: 0.3rem 0.7rem;
    border-radius: 6px; cursor: pointer; font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.3rem;
}
.theme-toggle-btn:hover { border-color: var(--nav-hover); color: var(--nav-hover); }
.theme-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 4px);
    background: var(--nav-bg); border: 1px solid var(--border);
    border-radius: 6px; list-style: none; padding: 0.3rem 0;
    min-width: 110px; z-index: 300; box-shadow: var(--card-shadow);
}
.theme-toggle-wrap.open .theme-dropdown { display: block; }
.theme-dropdown li button {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--nav-text); padding: 0.45rem 1rem; cursor: pointer;
    font-size: 0.875rem; font-family: inherit;
}
.theme-dropdown li button:hover,
.theme-dropdown li button.active { background: rgba(255,255,255,0.07); color: var(--nav-hover); }

/* Auth links */
.nav-auth a {
    font-size: 0.875rem; color: var(--nav-text);
    padding: 0.3rem 0.7rem; border-radius: 6px;
}
.nav-auth a.btn-signup {
    background: var(--accent); color: var(--accent-text);
}
.nav-auth a:hover { color: var(--nav-hover); text-decoration: none; }
.nav-auth a.btn-signup:hover { background: var(--accent-hover); color: #fff; }

/* Mobile hamburger */
.nav-toggle {
    display: none; background: none; border: none;
    color: var(--nav-text); cursor: pointer; padding: 0.4rem;
    font-size: 1.4rem;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */

#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* Page heading */
.page-heading { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.page-heading h1, .page-heading h2 { margin-bottom: 0.25rem; }
.page-heading p { color: var(--text-muted); margin-bottom: 0; }

/* =============================================
   BLOG / NEWS FEED
   ============================================= */

.news-feed { display: flex; flex-direction: column; gap: 1.25rem; }

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.news-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(59,111,212,0.12);
}

.news-card-meta {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--accent); text-decoration: none; }
.news-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* =============================================
   PRODUCTS GRID
   ============================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex; flex-direction: column; gap: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(59,111,212,0.14);
}

.product-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.product-card .product-desc { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

/* Star ratings */
.star-rating { display: flex; align-items: center; gap: 0.4rem; }
.stars { color: var(--star-color); font-size: 1rem; letter-spacing: 0.05em; }
.rating-value { font-size: 0.85rem; color: var(--text-muted); }

.product-card .btn { align-self: flex-start; }

/* =============================================
   PRICING
   ============================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem; margin-bottom: 3rem;
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px; padding: 1.75rem;
    box-shadow: var(--card-shadow);
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pricing-card .pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.pricing-card ul { margin-bottom: 1.25rem; }
.pricing-card ul li { font-size: 0.9rem; margin-bottom: 0.3rem; }
.pricing-card table { font-size: 0.875rem; }
.pricing-card table td:last-child { text-align: right; }

.licenses-section h2 { margin-bottom: 1.25rem; }
.license-list { display: flex; flex-direction: column; gap: 1rem; }
.license-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.license-item-info h4 { margin-bottom: 0.25rem; }
.license-item-info p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0; }
.license-price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }

/* =============================================
   BONUS VAULT
   ============================================= */

.vault-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 2rem;
    max-width: 600px; margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}
.vault-card h2 { margin-bottom: 0.5rem; }
.vault-card .vault-desc { color: var(--text-muted); margin-bottom: 1.25rem; }

.progress-bar-wrap {
    background: var(--progress-bg); border-radius: 999px;
    height: 20px; margin-bottom: 0.5rem; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: var(--progress-fill);
    border-radius: 999px; transition: width 0.4s;
}
.progress-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.vault-prize {
    background: var(--bg-alt); border-radius: 8px;
    padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.9rem;
}

.winners-list { list-style: none; padding: 0; }
.winners-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.winners-list li:last-child { border-bottom: none; }

/* =============================================
   DEVHUB
   ============================================= */

.devhub-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.devbook-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: var(--card-shadow);
}
.devbook-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.devbook-header h3 { margin-bottom: 0.2rem; }
.devbook-status {
    font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem;
    border-radius: 999px; white-space: nowrap;
}
.status-released { background: #d4edda; color: #155724; }
.status-in-progress { background: #fff3cd; color: #856404; }
.status-planned { background: #d1ecf1; color: #0c5460; }
[data-theme="dark"] .status-released { background: #1a3d26; color: #6ee08a; }
[data-theme="dark"] .status-in-progress { background: #3d2e00; color: #ffc847; }
[data-theme="dark"] .status-planned { background: #0d2d35; color: #56cfe1; }

.devbook-progress-wrap { margin-bottom: 0.75rem; }
.devbook-progress-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }

.devbook-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.devbook-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* =============================================
   LEADERBOARDS
   ============================================= */

.leaderboard-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}

.leaderboard-cat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem;
    text-align: center; font-weight: 600;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: var(--text);
}
.leaderboard-cat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(59,111,212,0.12);
    text-decoration: none; color: var(--accent);
}

.leaderboard-table { font-size: 0.9rem; }
.leaderboard-table td:first-child { width: 50px; text-align: center; font-weight: 700; }
.rank-1 td:first-child { color: #ffd700; }
.rank-2 td:first-child { color: #c0c0c0; }
.rank-3 td:first-child { color: #cd7f32; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block; padding: 0.5rem 1.1rem;
    background: var(--accent); color: var(--accent-text);
    border: none; border-radius: 7px; cursor: pointer;
    font-size: 0.875rem; font-weight: 600; font-family: inherit;
    transition: background 0.15s;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-text); text-decoration: none; }
.btn-outline {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-text); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* =============================================
   TAGS
   ============================================= */

.tag {
    display: inline-block; padding: 0.2rem 0.6rem;
    background: var(--tag-bg); color: var(--tag-text);
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}

/* =============================================
   SINGLE POST
   ============================================= */

.post-content { max-width: 760px; }
.post-content h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.post-content .post-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.post-content img { border-radius: 8px; margin: 1.5rem 0; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem; color: var(--text-muted);
    margin: 1.5rem 0;
}
.post-content pre {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 8px; padding: 1rem; overflow-x: auto;
    font-size: 0.875rem;
}
.post-content code {
    background: var(--bg-alt); padding: 0.15em 0.4em;
    border-radius: 4px; font-size: 0.875em;
}
.post-content pre code { background: none; padding: 0; }

/* =============================================
   FORMS
   ============================================= */

.sg-form { max-width: 480px; }
.sg-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.3rem; }
.sg-form input, .sg-form textarea, .sg-form select {
    width: 100%; padding: 0.55rem 0.85rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text); font-size: 0.9rem;
    font-family: inherit; margin-bottom: 1rem;
    transition: border-color 0.15s;
}
.sg-form input:focus, .sg-form textarea:focus, .sg-form select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,111,212,0.15);
}
.sg-form .form-group { margin-bottom: 1rem; }
.sg-form .form-error { color: #e53e3e; font-size: 0.8rem; margin-top: -0.75rem; margin-bottom: 0.75rem; }
.sg-form .form-success { color: #2f855a; font-size: 0.875rem; margin-bottom: 1rem;
    background: #c6f6d5; padding: 0.6rem 1rem; border-radius: 6px; }

/* =============================================
   ALERTS / NOTICES
   ============================================= */

.alert {
    padding: 0.85rem 1.1rem; border-radius: 8px;
    margin-bottom: 1rem; font-size: 0.9rem; border-left: 4px solid;
}
.alert-info    { background: #ebf4ff; border-color: #3b6fd4; color: #1e3a6e; }
.alert-success { background: #f0fdf4; border-color: #38a169; color: #1a4731; }
.alert-warning { background: #fffbeb; border-color: #d69e2e; color: #744210; }
.alert-error   { background: #fff5f5; border-color: #e53e3e; color: #63171b; }
[data-theme="dark"] .alert-info    { background: #1a2840; color: #90cdf4; }
[data-theme="dark"] .alert-success { background: #1a3328; color: #68d391; }
[data-theme="dark"] .alert-warning { background: #2d2410; color: #fbd38d; }
[data-theme="dark"] .alert-error   { background: #2d1515; color: #feb2b2; }

/* =============================================
   FOOTER
   ============================================= */

#site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--footer-text); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.85rem; font-weight: 700;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { color: var(--footer-text); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.8rem; color: var(--footer-text);
}

.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: var(--footer-text); }
.footer-bottom-links a:hover { color: var(--accent); text-decoration: none; }

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
    display: flex; gap: 0.4rem; margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.4rem 0.8rem; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.875rem; color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =============================================
   HOME PAGE (front-page.php) SPECIFIC STYLES
   ============================================= */

.home-hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, #15112c 0%, #080712 100%);
    padding: 6rem 1.5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-glow-1 {
    position: absolute;
    top: -10%; left: 10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%; right: 10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #f5f3ff 10%, #c084fc 50%, #67e8f9 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
    border-radius: 8px;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #b55fe6 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.btn-hero-secondary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
}

.home-content-wrap {
    padding-top: 4rem !important;
}

.home-section {
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-product-card .card-image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.home-product-card .card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.home-product-card .card-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.feature-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}
.feature-link:hover {
    text-decoration: none;
}

.home-cta-banner {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.home-cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.home-cta-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}
.btn-discord:hover {
    background: #4752C4;
    color: #fff;
}
.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-only-auth {
    display: none;
}

/* =============================================
   ENHANCED RESPONSIVE STYLING
   ============================================= */

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .features-grid { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    #primary-nav {
        display: none;
        flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--nav-bg); padding: 0.5rem 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        z-index: 200;
    }
    #primary-nav.open { display: flex; }
    #primary-nav > li > a,
    #primary-nav > li > button { line-height: 1; padding: 0.75rem 1.25rem; width: 100%; }
    #primary-nav .dropdown-menu { position: static; border: none; box-shadow: none; padding-left: 1.25rem; }

    .mobile-only-auth {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .mobile-only-auth a {
        display: block;
        padding: 0.75rem 1.25rem;
        font-weight: 500;
    }
    .mobile-signup-btn {
        color: var(--accent) !important;
    }

    .nav-inner { position: relative; }
    .nav-right { margin-left: auto; }
    .nav-auth { display: none; } /* Hide desktop auth links */

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-header h2, .home-cta-banner h2 { font-size: 1.8rem; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 520px) {
    .nav-credits-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    /* Hide the word 'credits' on very narrow screens */
    .nav-credits-link {
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .theme-toggle-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0; /* Hide 'Theme' text */
    }
    .theme-toggle-btn #theme-icon {
        font-size: 0.95rem; /* Maintain icon size */
    }

    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 0.75rem; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }

    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .home-cta-banner { padding: 2.5rem 1rem; }

    .modal-card {
        padding: 1.75rem;
        width: 95%;
    }
    .modal-heading {
        font-size: 1.4rem;
    }
}

