/**
 * Site Styles
 * All shared styles for index.html, detail pages, and category pages
 */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Orbitron', sans-serif;
    background: #0d0d0d;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.retro-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ff00;
}

.retro-text {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.retro-cyan {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.retro-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00ff00;
    border-radius: 0;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.retro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.retro-card:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.retro-card:hover .click-hint {
    opacity: 1;
}

.glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.click-hint {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 10px;
    text-align: right;
    margin-top: 8px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    font-size: 9px;
    letter-spacing: 1px;
}

.category-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00ff00;
    border-radius: 0;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #00ff00, transparent);
    margin: 60px 0;
}

/* Category page specific styles */
.back-link {
    color: rgba(0, 255, 0, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 24px;
}

.back-link:hover {
    color: #00ff00;
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.tool-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00ff00;
    border-radius: 0;
    padding: 32px;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.7),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-6px);
}

/* Detail page specific styles */
.cta-button {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 255, 255, 0.2) 100%);
    border: 3px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

.retro-link {
    color: #00ff00;
    text-decoration: none;
    border: 2px solid #00ff00;
    padding: 8px 16px;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.retro-link:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-line {
    border-left: 3px solid #00ff00;
    padding-left: 16px;
    margin: 12px 0;
    transition: all 0.3s ease;
}

.info-line:hover {
    border-left-color: #00ffff;
    padding-left: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #00ff00;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 4px 4px 4px 0;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

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

.feature-box {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #00ff00;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Clean category cards for "other categories" section - override default styles */
section[class*="mb-20"] [data-include-categories] .category-card,
[data-include-categories] .category-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible !important;
}

[data-include-categories] .category-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

[data-include-categories] .category-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

[data-include-categories] .category-card:hover::before {
    border-color: #00ffff;
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
}

[data-include-categories] .category-card .text-5xl {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

[data-include-categories] .category-card:hover .text-5xl {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
}

[data-include-categories] .category-card h3 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-include-categories] .category-card:hover h3 {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4) !important;
    color: #00ffff !important;
}

[data-include-categories] .category-card p {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-include-categories] .category-card:hover p {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8) !important;
}

