/*
 * PROGRAMISTA V2 - ADDITIONAL UTILITY STYLES
 * Extras and helpers for Elementor implementation
 */

/* ==========================================================================
   SECTION BACKGROUNDS - Gradient Overlays
   ========================================================================== */

.section-gradient-radial {
    background: radial-gradient(circle at 50% 50%, rgba(0, 191, 255, 0.08) 0%, transparent 60%);
}

.section-gradient-vertical {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 191, 255, 0.05) 50%, transparent 100%);
}

.section-dark-overlay {
    position: relative;
}

.section-dark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.section-dark-overlay > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   CONTENT WIDTHS
   ========================================================================== */

.content-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-medium {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.content-wide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.content-full {
    max-width: 100%;
}

/* ==========================================================================
   BADGES & LABELS
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 191, 255, 0.1));
    border: 1px solid var(--color-accent-primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-primary);
}

.label-new {
    background: linear-gradient(135deg, #00BFFF, #0099CC);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   STATS & NUMBERS
   ========================================================================== */

.stat-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin: 60px 0;
}

/* ==========================================================================
   CHECKMARKS & LISTS
   ========================================================================== */

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding-left: 40px;
    margin-bottom: 15px;
    position: relative;
    color: var(--color-text-secondary);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
    margin: 60px 0;
}

.divider-thick {
    height: 3px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.divider-vertical {
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--color-accent-primary), transparent);
    margin: 0 auto;
}

/* ==========================================================================
   ICONS
   ========================================================================== */

.icon-large {
    font-size: 4rem;
    color: var(--color-accent-primary);
    margin-bottom: 20px;
    display: block;
}

.icon-glow {
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.5));
}

/* ==========================================================================
   QUOTES & CALLOUTS
   ========================================================================== */

.quote-block {
    padding: 40px 30px;
    border-left: 4px solid var(--color-accent-primary);
    background: rgba(20, 20, 20, 0.5);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 40px 0;
}

.callout-box {
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 191, 255, 0.05));
    border: 1px solid var(--color-accent-primary);
    border-radius: 12px;
    margin: 40px 0;
}

.callout-box h3 {
    color: var(--color-accent-primary);
    margin-bottom: 15px;
}

/* ==========================================================================
   IMAGES & MEDIA
   ========================================================================== */

.image-float-effect {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.image-float-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 191, 255, 0.2);
}

.image-glow {
    border: 1px solid var(--color-accent-primary);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.3);
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--color-accent-primary);
}

/* ==========================================================================
   STICKY CTA BUTTON
   ========================================================================== */

.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.sticky-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   SECTION PROGRESS NAVIGATOR
   ========================================================================== */

.section-progress-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.progress-track {
    position: relative;
    width: 3px;
    height: 300px;
    background: rgba(0, 191, 255, 0.15);
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-accent-primary), #00FFE5);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.progress-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 3px;
}

.start-marker {
    top: -25px;
}

.end-marker {
    bottom: -25px;
}

.current-section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(0, 191, 255, 0.4);
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
}

.current-section-label:empty {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section-progress-nav {
        right: 15px;
        transform: translateY(-50%) scale(0.85);
    }
    
    .progress-track {
        height: 200px;
    }
    
    .current-section-label {
        display: none;
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 191, 255, 0.3);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.comparison-table th {
    background: rgba(0, 191, 255, 0.1);
    color: var(--color-accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    color: var(--color-text-secondary);
}

.comparison-table tr:hover {
    background: rgba(20, 20, 20, 0.5);
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent-primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent-primary);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.timeline-title {
    color: var(--color-accent-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   BEFORE/AFTER COMPARISON
   ========================================================================== */

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.before-card,
.after-card {
    padding: 30px;
    border-radius: 12px;
}

.before-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(139, 0, 0, 0.05));
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.after-card {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 191, 255, 0.05));
    border: 1px solid var(--color-accent-primary);
}

/* ==========================================================================
   ELEMENTOR OVERRIDES
   ========================================================================== */

/* Remove default Elementor column gaps for seamless sections */
.elementor-section.no-gap .elementor-container {
    gap: 0;
}

/* Full-bleed sections */
.elementor-section.full-bleed {
    padding: 0;
}

/* Center content in Elementor columns */
.elementor-column.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
    
    .sticky-cta {
        bottom: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .sticky-cta,
    .scroll-progress-bar,
    .video-modal {
        display: none !important;
    }
}
