/* Pixel Encyclopedia Command Center Theme - Matching Cards Sites */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Retro scan lines effect */
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
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    border: 2px solid #00ff00;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
}

/* Glimmer Effect for Title */
@keyframes glimmer {
    0% { 
        background-position: -200% center;
    }
    100% { 
        background-position: 200% center;
    }
}

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff 0%, #00ff00 25%, #0080ff 50%, #ff00ff 75%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glimmer 8s ease-in-out infinite;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}


/* Navigation */
.nav {
    text-align: center;
    margin-bottom: 30px;
}

.nav a {
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
}

.nav-home {
    color: #ffffff;
    border-color: #ffffff;
}

.nav-home:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
}

/* Main content grid */
.content-grid {
    margin-bottom: 40px;
}

/* Card Sections */
.card-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px;
}

.major-arcana-title {
    color: #ff00ff;
}

.cups-title {
    color: #00aaff;
}

.wands-title {
    color: #ff4444;
}

.swords-title {
    color: #ffffff;
}

.pentacles-title {
    color: #00ff88;
}

/* Navigation Buttons Grid */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.nav-button {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 6px 4px;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 45px;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff00, #0080ff, #ff00ff, #00ff00);
    background-size: 200% 100%;
    animation: glimmer 3s ease-in-out infinite;
}

.nav-button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.nav-button h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.0;
    text-align: center;
}

/* Specific button styles with different colors */
.major-arcana {
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.major-arcana:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    border-color: #ff00ff;
}

.major-arcana::before {
    background: linear-gradient(90deg, #ff00ff, #00ff00, #0080ff, #ff00ff);
}

.cups {
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.cups:hover {
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    border-color: #00aaff;
}

.cups::before {
    background: linear-gradient(90deg, #00aaff, #00ff00, #ff00ff, #00aaff);
}

.wands {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.wands:hover {
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    border-color: #ff4444;
}

.wands::before {
    background: linear-gradient(90deg, #ff4444, #00ff00, #ff00ff, #ff4444);
}

.swords {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.swords:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

.swords::before {
    background: linear-gradient(90deg, #ffffff, #00ff00, #ff00ff, #ffffff);
}

.pentacles {
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.pentacles:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    border-color: #00ff88;
}

.pentacles::before {
    background: linear-gradient(90deg, #00ff88, #00ff00, #ff00ff, #00ff88);
}

/* Home Button */
.home-button {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    gap: 0.25rem;
}

.home-button:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.home-crystal {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.home-button:hover .home-crystal {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.home-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.home-button:hover .home-tooltip {
    opacity: 1;
}

.home-url {
    font-family: 'Orbitron', monospace;
    font-size: 0.5rem;
    color: #00ff00;
    text-shadow: 
        0 0 3px rgba(0, 255, 0, 0.8),
        0 0 6px rgba(0, 255, 0, 0.6);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-button:hover .home-url {
    color: #00ff00;
    text-shadow: 
        0 0 5px rgba(0, 255, 0, 1),
        0 0 10px rgba(0, 255, 0, 0.8);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #00ff00;
    color: #00cc00;
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ff00;
}

/* Mobile styles for home button */
@media (max-width: 768px) {
    .home-button {
        top: 0.1rem;
        right: 0.1rem;
        padding: 0.15rem;
        gap: 0.1rem;
    }
    
    .home-crystal {
        width: 24px;
        height: 24px;
    }
    
    .home-tooltip {
        font-size: 0.35rem;
        padding: 0.25rem 0.4rem;
        margin-bottom: 0.25rem;
    }
    
    .home-url {
        font-size: 0.3rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-buttons {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-button {
        padding: 4px 2px;
        min-height: 35px;
        border-radius: 8px;
    }
    
    .nav-button h3 {
        font-size: 0.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .nav-buttons {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }
    
    .nav-button {
        padding: 3px 1px;
        min-height: 30px;
        border-radius: 6px;
    }
    
    .nav-button h3 {
        font-size: 0.4rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}