/* Lucide Icons Styles */
i[data-lucide] {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.game-card h3 i[data-lucide] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.tab-btn i[data-lucide] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.portfolio-card h3 i[data-lucide] {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

/* Quantum Odyssey specific icon styles */
.status-icon i[data-lucide] {
    width: 24px;
    height: 24px;
    margin: 0;
}

.action-icon i[data-lucide] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.story-location i[data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.crew-title i[data-lucide],
.inventory-title i[data-lucide] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.game-title i[data-lucide] {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

/* Community list icons */
ul li i[data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Header icon */
h1 i[data-lucide] {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    vertical-align: middle;
}

h2 i[data-lucide] {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Game Container Styles */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0f;
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(88, 166, 255, 0.2);
    border: 1px solid rgba(88, 166, 255, 0.5);
    color: #f0f6fc;
    padding: 12px 24px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.back-button:hover {
    background: rgba(88, 166, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 166, 255, 0.4);
}

.game-frame {
    margin-top: 80px;
    width: 100%;
    height: calc(100vh - 120px);
    background: rgba(13, 17, 23, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(240, 246, 252, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.loading, .error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 24px;
    color: #8b949e;
}

.error {
    color: #ff6b6b;
}

/* Game Specific Styles */
.game-canvas {
    border: 2px solid rgba(88, 166, 255, 0.3);
    border-radius: 10px;
    background: #000;
}

.game-ui {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    backdrop-filter: blur(10px);
}

.game-score {
    font-size: 24px;
    font-weight: bold;
    color: #58a6ff;
    text-align: center;
    margin-bottom: 10px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.game-button {
    background: rgba(88, 166, 255, 0.2);
    border: 1px solid rgba(88, 166, 255, 0.5);
    color: #f0f6fc;
    padding: 12px 24px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-button:hover {
    background: rgba(88, 166, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.4);
}

.game-button:active {
    transform: translateY(0);
}

.game-button.primary {
    background: rgba(255, 119, 198, 0.2);
    border-color: rgba(255, 119, 198, 0.5);
}

.game-button.primary:hover {
    background: rgba(255, 119, 198, 0.3);
    box-shadow: 0 5px 15px rgba(255, 119, 198, 0.4);
}

.game-info {
    text-align: center;
    color: #8b949e;
    margin: 20px 0;
    font-size: 18px;
}

.game-grid {
    display: grid;
    gap: 2px;
    background: #333;
    border: 2px solid rgba(88, 166, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
}

.game-cell {
    background: #000;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.game-cell.filled {
    background: #58a6ff;
    color: #fff;
}

.game-cell.snake {
    background: #10b981;
}

.game-cell.food {
    background: #ff6b6b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Coming Soon Game Card Styles */
.coming-soon-card {
    opacity: 0.7;
    cursor: not-allowed !important;
    position: relative;
    filter: grayscale(20%);
}

.coming-soon-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2) !important;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255, 193, 7, 0.1) 25%, 
        rgba(255, 193, 7, 0.1) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(255, 193, 7, 0.1) 75%
    );
    background-size: 20px 20px;
    border-radius: 20px;
    opacity: 0.3;
    animation: comingSoonStripes 3s linear infinite;
    pointer-events: none;
}

.coming-soon {
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: comingSoonShine 2s ease-in-out infinite;
}

@keyframes comingSoonStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes comingSoonShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .game-frame {
        margin-top: 60px;
        height: calc(100vh - 80px);
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-button {
        width: 200px;
    }
}
