/* 8-Bit Console Theme - Index Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: #1a1a2e;
    color: #e94560;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(233, 69, 96, 0.03) 2px,
            rgba(233, 69, 96, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(15, 76, 117, 0.03) 2px,
            rgba(15, 76, 117, 0.03) 4px
        );
    z-index: -1;
}

/* Game Screen Container */
.game-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.screen-border {
    width: 100%;
    max-width: 1200px;
    background: #0f4c75;
    border: 8px solid #e94560;
    border-radius: 16px;
    box-shadow: 
        0 0 0 4px #1a1a2e,
        0 0 0 8px #e94560,
        0 0 50px rgba(233, 69, 96, 0.3),
        inset 0 0 0 4px #1a1a2e;
    position: relative;
}

.screen-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #e94560, #0f4c75, #e94560);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

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

.screen-content {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-radius: 8px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    background: #0f4c75;
    border-bottom: 4px solid #e94560;
    padding: 1rem 2rem;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pixel-icon {
    font-size: 1.5rem;
    color: #e94560;
    animation: pixelShimmer 2s ease-in-out infinite;
}

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

.game-title {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    letter-spacing: 3px;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    font-size: 8px;
    color: #e94560;
}

.score-value {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
}

/* Main Game Area */
.game-area {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-screen {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.main-title {
    margin-bottom: 1rem;
}

.big-text {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 4px 4px 0px #000000;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.big-text.highlight {
    color: #e94560;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subtitle {
    margin-bottom: 3rem;
}

.subtitle p {
    font-size: 12px;
    color: #0f4c75;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px #000000;
}

/* Status Window */
.status-window {
    background: #1a1a2e;
    border: 4px solid #0f4c75;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 0 20px rgba(15, 76, 117, 0.3);
}

.window-header {
    background: #0f4c75;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e94560;
}

.window-header span:first-child {
    font-size: 10px;
    color: #ffffff;
    letter-spacing: 2px;
}

.blinking {
    color: #e94560;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.window-content {
    padding: 2rem;
}

.window-content p {
    font-size: 10px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.loading-bar {
    width: 100%;
    height: 20px;
    background: #000000;
    border: 2px solid #0f4c75;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #0f4c75);
    width: 0%;
    animation: loading 3s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 0%; }
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-item {
    background: #1a1a2e;
    border: 4px solid #0f4c75;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-item:hover::before {
    left: 100%;
}

.game-item:hover {
    border-color: #e94560;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.item-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 0px #000000);
}

.item-info h3 {
    font-size: 12px;
    color: #e94560;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.item-info p {
    font-size: 8px;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.item-stats {
    font-size: 8px;
    color: #0f4c75;
    letter-spacing: 1px;
}

/* Buttons */
.button-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.game-button {
    background: #0f4c75;
    border: 4px solid #e94560;
    color: #ffffff;
    padding: 1rem 2rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(233, 69, 96, 0.2);
    transition: left 0.3s ease;
}

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

.game-button:hover {
    background: #e94560;
    border-color: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.game-button.secondary {
    background: transparent;
    color: #e94560;
}

.game-button.secondary:hover {
    background: #e94560;
    color: #ffffff;
}

/* Game Footer */
.game-footer {
    background: #0f4c75;
    border-top: 4px solid #e94560;
    padding: 1rem 2rem;
    text-align: center;
}

.footer-text {
    font-size: 8px;
    color: #ffffff;
    letter-spacing: 1px;
}

.separator {
    margin: 0 1rem;
    color: #e94560;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-screen {
        padding: 1rem;
    }
    
    .screen-content {
        min-height: 90vh;
    }
    
    .big-text {
        font-size: 1.8rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .item-grid {
        grid-template-columns: 1fr;
    }
    
    .button-row {
        flex-direction: column;
        align-items: center;
    }
    
    .game-button {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .big-text {
        font-size: 1.2rem;
    }
    
    .header-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-area {
        padding: 1rem;
    }
}

/* Creator Link Styling */
.creator-link {
  color: #e94560;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.creator-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #e94560;
}

.creator-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s ease;
}

.creator-link:hover::after {
  width: 100%;
}
