/* Auto Prophets - Home Pro Template CSS */
/* Common styles for home-pro.handlebars template and all pages using it */

/* ============================
   CORE VARIABLES & FOUNDATIONS
   ============================ */

:root {
    /* Core Brand Colors */
    --primary-gold: #d4a14d;
    --gold-gradient: linear-gradient(135deg, #f7d488, #d4a14d);
    --gold-glow: 0 0 20px rgba(212, 161, 77, 0.4);
    
    /* Dark Glassmorphism Palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #111118;
    
    /* Glass Effects */
    --glass-dark: rgba(15, 15, 25, 0.7);
    --glass-light: rgba(25, 25, 35, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-accent: rgba(212, 161, 77, 0.1);
    
    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #d4a14d;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
    
    /* Borders */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================
   UTILITY CLASSES
   ============================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.text-gradient {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.glass-card {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ============================
   COMMON BUTTON STYLES
   ============================ */

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg), var(--gold-glow);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(212, 161, 77, 0.6);
    color: var(--bg-primary);
}

.btn-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.3) 0%, 
        rgba(0, 255, 171, 0.2) 50%,
        rgba(34, 197, 94, 0.3) 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(71, 30, 133, 0.4) 0%, 
        rgba(139, 92, 246, 0.3) 50%,
        rgba(71, 30, 133, 0.4) 100%);
    border-color: rgba(71, 30, 133, 0.8);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(71, 30, 133, 0.5);
    transform: translateY(-3px);
}

/* ============================
   COMMON HERO SECTION STYLES
   ============================ */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -1;
}

.hero-animation-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a14d' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(-60px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    color: var(--text-accent);
    font-weight: 600;
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================
   COMMON SECTION STYLES
   ============================ */

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   COMMON CARD STYLES
   ============================ */

.card {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

/* ============================
   TRUST SECTION STYLES
   ============================ */

.trust-section {
    background: var(--glass-dark);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-item {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(20px);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--gold-glow);
}

.trust-icon i {
    font-size: 2rem;
    color: var(--bg-primary);
}

.trust-item h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.trust-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================
   FEATURE ITEM STYLES
   ============================ */

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================
   GRID LAYOUTS
   ============================ */

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ============================
   ICON CONTAINERS
   ============================ */

.icon-container {
    width: 60px;
    height: 60px;
    background: var(--glass-accent);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.icon-container i {
    font-size: 1.5rem;
    color: var(--text-accent);
}

/* ============================
   GLASS SECTIONS
   ============================ */

.glass-section {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.glass-accent-section {
    background: var(--glass-accent);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

/* ============================
   LOADING ANIMATIONS
   ============================ */

.loading-spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(212, 161, 77, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(212, 161, 77, 0.6);
        transform: scale(1.05);
    }
}

/* ============================
   PERFORMANCE STATS
   ============================ */

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.performance-stat {
    text-align: center;
    padding: 1rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.performance-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-stat-value {
    color: var(--text-accent);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================
   COMMON FEATURE STYLES
   ============================ */

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================
   COMMON GRID LAYOUTS
   ============================ */

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

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

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

/* ============================
   COMMON ICON STYLES
   ============================ */

.icon-container {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--gold-glow);
}

.icon-container i {
    font-size: 1.5rem;
    color: var(--bg-primary);
}

/* ============================
   COMMON GLASSMORPHISM EFFECTS
   ============================ */

.glass-section {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.glass-accent-section {
    background: var(--glass-accent);
    backdrop-filter: blur(20px);
}

/* ============================
   COMMON LOADING ANIMATIONS
   ============================ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 161, 77, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(212, 161, 77, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(212, 161, 77, 0.8);
    }
}

/* ============================
   COMMON PERFORMANCE STYLES
   ============================ */

.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.performance-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.performance-stat-value {
    color: var(--text-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================
   COMMON RESPONSIVE BREAKPOINTS
   ============================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
    }
    
    .icon-container i {
        font-size: 1.2rem;
    }
}

/* ============================
   COMMON ACCESSIBILITY
   ============================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* ============================
   COMMON HIGH CONTRAST SUPPORT
   ============================ */

@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #ffffff;
        --text-muted: #e2e8f0;
    }
}

/* ============================
   COMMON REDUCED MOTION SUPPORT
   ============================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-animation-layer {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: var(--primary-gold);
    }
}

/* Go for Gold Popup Styles */
.go-for-gold-popup {
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(212, 161, 77, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    text-align: center !important;
}

.go-for-gold-title {
    color: #d4a14d !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.go-for-gold-content {
    padding: 15px !important;
}

/* Make Upgrade Now button have black text */
.go-for-gold-popup .swal2-confirm {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* More specific selector to override inline styles */
.swal2-container .go-for-gold-popup .swal2-confirm,
.swal2-container .swal2-popup.go-for-gold-popup .swal2-confirm {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Custom confirm button class */
.go-for-gold-confirm-btn,
.swal2-confirm.go-for-gold-confirm-btn {
    color: #000000 !important;
    font-weight: 600 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove grey border from main dashboard popup button */
.go-for-gold-popup .swal2-confirm.swal2-styled,
.go-for-gold-popup .swal2-confirm.swal2-default-outline {
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Make $495 stand out with green color */
.go-for-gold-popup .swal2-html-container span:contains('$495') {
    color: #10b981 !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

/* Mobile responsiveness for Go for Gold popup */
@media (max-width: 480px) {
    .go-for-gold-popup {
        width: 95% !important;
        margin: 10px !important;
    }
    
    .go-for-gold-title {
        font-size: 18px !important;
    }
    
    .swal2-popup {
        padding: 15px !important;
    }
    
    .swal2-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .swal2-confirm, .swal2-cancel {
        width: 100% !important;
        margin: 0 !important;
    }
}
