/*
Theme Name: TooUps Pro
Theme URI: https://tooups.com
Author: TooUps Digital
Author URI: https://tooups.com
Description: A premium, tech-luxury WordPress theme for digital products and SaaS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tooups-pro
Tags: dark-mode, glassmorphism, saas, digital-products
*/

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --bg-dark: #02040a;
    --bg-slate: #0B1221;
    --accent-gold-start: #F2C94C;
    --accent-gold-end: #F2994A;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-border-hover: rgba(242, 201, 76, 0.3);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
    --section-spacing: 120px;

    /* Fonts */
    --font-main: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(242, 201, 76, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(242, 153, 74, 0.03) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* =========================================
   3. Layout & Utilities
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 201, 76, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-gold-start);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* =========================================
   5. Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
    border-radius: 4px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* =========================================
   6. Hero Section
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

.tablet-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(11, 18, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.screen-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-line,
.chart-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chart-line {
    height: 60%;
    width: 100%;
}

.chart-bar {
    height: 20%;
    width: 80%;
}

/* =========================================
   7. Categories Section
   ========================================= */
.categories .section-header {
    margin-bottom: 60px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.category-card .icon-box {
    width: 48px;
    height: 48px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-start);
    margin-bottom: 8px;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   8. Product Showcase
   ========================================= */
.products .section-header {
    margin-bottom: 60px;
}

.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    background: #1a1f2e;
    width: 100%;
    position: relative;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* =========================================
   9. Testimonials
   ========================================= */
.testimonials .section-header {
    margin-bottom: 60px;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--glass-border);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card p {
    margin-top: 30px;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-secondary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3241;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--accent-gold-start);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   10. Newsletter CTA
   ========================================= */
.newsletter-cta .glass-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 4, 10, 0.8) 100%);
    border: 1px solid var(--accent-gold-start);
    box-shadow: 0 0 40px rgba(242, 201, 76, 0.1);
}

.cta-text {
    max-width: 500px;
}

.cta-text h2 {
    font-size: 2rem;
    color: var(--accent-gold-start);
}

.cta-form {
    display: flex;
    gap: 12px;
}

.cta-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    min-width: 300px;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent-gold-start);
}

/* =========================================
   11. Footer
   ========================================= */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-gold-start);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   12. Responsive
   ========================================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .nav,
    .header .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .newsletter-cta .glass-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .cta-form {
        flex-direction: column;
        width: 100%;
    }

    margin-bottom: 0;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* =========================================
   9. Testimonials
   ========================================= */
.testimonials .section-header {
    margin-bottom: 60px;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--glass-border);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card p {
    margin-top: 30px;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-secondary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3241;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--accent-gold-start);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   10. Newsletter CTA
   ========================================= */
.newsletter-cta .glass-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 4, 10, 0.8) 100%);
    border: 1px solid var(--accent-gold-start);
    box-shadow: 0 0 40px rgba(242, 201, 76, 0.1);
}

.cta-text {
    max-width: 500px;
}

.cta-text h2 {
    font-size: 2rem;
    color: var(--accent-gold-start);
}

.cta-form {
    display: flex;
    gap: 12px;
}

.cta-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    min-width: 300px;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent-gold-start);
}

/* =========================================
   11. Footer
   ========================================= */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-gold-start);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   12. Responsive
   ========================================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .nav,
    .header .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .newsletter-cta .glass-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .cta-form {
        flex-direction: column;
        width: 100%;
    }

    .cta-form input {
        min-width: auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }
}

/* =========================================
   13. WordPress Compatibility
   ========================================= */
.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: 100vw;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================
   14. WooCommerce Overrides
   ========================================= */
.woocommerce .glass-card {
    padding: 40px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 10px;
}

.woocommerce ul.products li.product .price {
    color: var(--accent-gold-start);
    font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end)) !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 201, 76, 0.2);
}

.woocommerce div.product .product_title {
    color: var(--text-primary);
    font-size: 2rem;
}

.woocommerce div.product p.price {
    color: var(--accent-gold-start);
    font-size: 1.5rem;
}

.woocommerce .quantity .qty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    padding: 8px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--glass-bg);
    border-top: 3px solid var(--accent-gold-start);
    color: var(--text-primary);
}

/* =========================================
   15. Page Builder Compatibility
   ========================================= */
.full-width-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.full-width-content .elementor-section {
    width: 100%;
}

/* =========================================
   16. Widget Styles
   ========================================= */
.widget {
    margin-bottom: 30px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--accent-gold-start);
}

.widget-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}