/**
 * Landing Interactive Components
 * Estilos para terminal interactivo, topology map y widgets
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-new {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    padding-top: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: #FFFFFF;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00CA8E;
    margin-bottom: 1rem;
}

.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #7B42BC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-visual {
    position: relative;
}

/* ========================================
   INTERACTIVE TERMINAL
   ======================================== */

.interactive-terminal {
    background: #0A0A0A;
    border: 3px solid #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 450px;
    max-height: 450px;
}

.terminal-header {
    background: linear-gradient(180deg, #3A3A3A 0%, #2A2A2A 100%) !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    user-select: none !important;
}

.terminal-buttons {
    display: flex !important;
    gap: 1rem !important;
}

.terminal-btn {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}
}

.terminal-btn.close {
    background: #FF5F56 !important;
}

.terminal-btn.close:hover {
    background: #FF6B63 !important;
    box-shadow: 0 0 12px #FF5F56 !important;
    transform: scale(1.2) !important;
}

.terminal-btn.minimize {
    background: #FFBD2E !important;
}

.terminal-btn.minimize:hover {
    background: #FFCA3B !important;
    box-shadow: 0 0 12px #FFBD2E !important;
    transform: scale(1.2) !important;
}

.terminal-btn.maximize {
    background: #27C93F !important;
}

.terminal-btn.maximize:hover {
    background: #34D94C !important;
    box-shadow: 0 0 12px #27C93F !important;
    transform: scale(1.2) !important;
}

.terminal-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-left: auto;
    letter-spacing: 0.05em;
}

.terminal-content {
    padding: 1.5rem;
    height: 380px;
    max-height: 380px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #FFFFFF;
    flex: 1;
    background: #0A0A0A;
}

.terminal-line {
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line:not(.terminal-output) {
    color: #00CA8E;
    font-weight: 700;
}

.terminal-line:not(.terminal-output)::before {
    content: '$ ';
    color: #7B42BC;
    margin-right: 0.5rem;
    font-weight: 700;
}

.terminal-line.terminal-output {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.5rem;
}

.terminal-line.terminal-highlight {
    color: #FFFF00;
    font-weight: 700;
}

.terminal-line.terminal-success {
    color: #00CA8E;
    font-weight: 700;
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1A1A1A;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #7B42BC;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #9B62DC;
}

/* ========================================
   TOPOLOGY MAP
   ======================================== */

.topology-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #0A0A0A;
    border: 4px solid #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.topology-map {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
    background: #1A1A1A;
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    padding: 2rem 0;
    margin: 4rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #7B42BC 0%, #00CA8E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   HASHICORP WIDGETS
   ======================================== */

.widgets-section {
    padding: 6rem 0;
    background: #0A0A0A;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hashicorp-widget {
    background: #1A1A1A;
    border: 4px solid #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    overflow: hidden;
}

.hashicorp-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7B42BC 0%, #00CA8E 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.hashicorp-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(123, 66, 188, 0.3);
}

.hashicorp-widget:hover::before {
    transform: scaleX(1);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.widget-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
}

.widget-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.widget-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.hashicorp-widget.expanded .widget-content {
    max-height: 500px;
}

.widget-code {
    background: #0A0A0A;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #00CA8E;
    overflow-x: auto;
}

.widget-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.widget-stat {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.widget-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #7B42BC;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    transition: all 0.2s;
}

.widget-cta:hover {
    background: #00CA8E;
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .hero-headline {
        font-size: 3.5rem;
    }
    
    .widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-new {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .terminal-content {
        font-size: 0.75rem;
        min-height: 200px;
    }
    
    .topology-map-container {
        height: 300px;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
