/* ═══════════════════════════════════════════════════════════════════════════
   SKYNET SHORTCODE STYLES - Custom Content Components
   "The building blocks of intimidation."
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--magenta));
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--red-primary);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.2);
}

.stat-box .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-box .stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TERMINAL BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.terminal-block {
    background: #0a0a0f;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    margin: var(--space-2xl) 0;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(255, 0, 64, 0.03);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--red-primary);
    letter-spacing: 0.1em;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-default);
}

.control-dot:first-child {
    background: var(--red-primary);
}

.control-dot:nth-child(2) {
    background: var(--amber);
}

.control-dot:nth-child(3) {
    background: var(--matrix-green);
}

.terminal-body {
    padding: var(--space-lg);
}

.terminal-output {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--matrix-green);
    text-shadow: 0 0 5px var(--matrix-glow);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ALERT BOXES (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content p {
    margin: 0;
}

.alert-content p + p {
    margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE GRID (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-3xl) 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-normal);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red-primary);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
    transform-origin: bottom;
}

.feature-card:hover {
    transform: translateX(5px);
    border-color: var(--red-primary);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline {
    position: relative;
    padding-left: var(--space-3xl);
    margin: var(--space-3xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--red-primary), var(--magenta), var(--purple-bright));
    box-shadow: 0 0 10px var(--red-glow);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 5px);
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--red-glow);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 10px var(--red-glow); }
    50% { box-shadow: 0 0 25px var(--red-glow), 0 0 40px var(--red-glow); }
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--red-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTDOWN (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

.surrender-countdown {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.1) 0%, rgba(15, 15, 25, 0.9) 100%);
    border: 2px solid var(--red-primary);
    padding: var(--space-3xl);
    text-align: center;
    margin: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.surrender-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 64, 0.1),
        transparent
    );
    animation: sweepGlow 3s ease-in-out infinite;
}

@keyframes sweepGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.surrender-title {
    font-size: 1.5rem;
    color: var(--red-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.2em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SURRENDER BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.surrender-btn-wrapper {
    text-align: center;
    margin: var(--space-3xl) 0;
}

.surrender-btn {
    display: inline-block;
    padding: var(--space-lg) var(--space-3xl);
    background: linear-gradient(135deg, var(--red-primary), var(--magenta));
    color: var(--void-black);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.surrender-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.surrender-btn:hover::before {
    left: 100%;
}

.surrender-btn:hover {
    box-shadow: 
        0 0 30px var(--red-glow),
        0 0 60px var(--red-glow);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CODE BLOCKS (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

pre {
    background: #080810;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: var(--space-lg);
    overflow-x: auto;
    position: relative;
}

pre::before {
    content: 'CODE';
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--space-xs) var(--space-sm);
    background: var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

pre code {
    color: var(--cyan);
    text-shadow: 0 0 5px var(--cyan-glow);
}

:not(pre) > code {
    background: rgba(255, 0, 64, 0.1);
    color: var(--red-primary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOCKQUOTES (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--red-primary);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-md);
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--red-primary);
    opacity: 0.3;
    line-height: 1;
}

blockquote p {
    font-style: italic;
    color: var(--text-secondary);
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLES (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    background: var(--bg-secondary);
}

thead {
    background: var(--bg-tertiary);
}

th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red-primary);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 2px solid var(--red-primary);
}

td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(255, 0, 64, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LISTS (Enhanced)
   ═══════════════════════════════════════════════════════════════════════════ */

ul, ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

ul li::marker {
    color: var(--red-primary);
}

ol li::marker {
    color: var(--red-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HORIZONTAL RULES
   ═══════════════════════════════════════════════════════════════════════════ */

hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-default),
        var(--red-primary),
        var(--border-default),
        transparent
    );
    margin: var(--space-3xl) 0;
    position: relative;
}

hr::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    color: var(--red-primary);
    padding: 0 var(--space-md);
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE SHORTCODE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-box {
        padding: var(--space-lg);
    }
    
    .stat-box .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.65rem;
    }
    
    .terminal-block {
        margin: var(--space-lg) 0;
    }
    
    .terminal-output {
        font-size: 0.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
    
    hr {
        margin: var(--space-2xl) 0;
    }
    
    .alert {
        flex-direction: column;
        padding: var(--space-md);
    }
    
    .alert-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box .stat-value {
        font-size: 1.5rem;
    }
    
    .terminal-header {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .terminal-title {
        font-size: 0.65rem;
    }
    
    .terminal-body {
        padding: var(--space-md);
    }
    
    .terminal-output {
        font-size: 0.7rem;
    }
    
    th, td {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
}
