/* Game Page Specific Styles */

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}



/* Game Info Section */
.game-info {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    padding: 40px 0;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.game-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.game-actions button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 44px;
    height: 44px;
}

.game-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Game Area */
.game-area {
    background: #f8f9fa;
    min-height: 70vh;
    padding: 40px 0;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-interface {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    min-height: 600px;
}

/* Avatar Display */
.avatar-display {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    position: relative;
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.avatar-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

.avatar-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.character-base {
    width: 120px;
    height: 160px;
    background: #fdbcb4;
    border-radius: 50px 50px 40px 40px;
    position: relative;
    margin-bottom: 20px;
}

.character-hair {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 80px;
    background: #FFD700;
    border-radius: 70px 70px 20px 20px;
    z-index: 2;
}

.character-eyes {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    z-index: 3;
}

.character-eyes::before,
.character-eyes::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    top: 2px;
}

.character-eyes::before {
    left: 5px;
}

.character-eyes::after {
    right: 5px;
}

.character-outfit {
    width: 100px;
    height: 120px;
    background: #673ab7;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
}

.character-accessories {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.avatar-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    background: #673ab7;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: #5e35b1;
    transform: translateY(-2px);
}

/* Customization Panel */
.customization-panel {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.panel-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #673ab7;
}

.tab-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 15px 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

.panel-content {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.options-group {
    display: none;
}

.options-group.active {
    display: block;
}

.options-group h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.options-group h4 {
    color: #666;
    margin: 20px 0 15px;
    font-size: 1rem;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    border-color: #673ab7;
    background: #e8eaf6;
}

.option-item.selected {
    border-color: #673ab7;
    background: #e8eaf6;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.2);
}

.option-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #e0e0e0;
}

.option-item span {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    display: block;
    line-height: 1.2;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
}

/* Game Description */
.game-description {
    padding: 60px 0;
    background: white;
}


.description-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(36, 36, 36, 1)
}

.description-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: rgba(36, 36, 36, 1)
}

.description-text p {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 32px;
    align-items: flex-end;
}

.feature {

}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: rgba(36, 36, 36, 1)
}

.feature p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Related Games */
.related-games {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-games h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-game-card:hover {
    transform: translateY(-8px);
}

.related-game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-game-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.related-game-card p {
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.related-game-card .play-btn {
    display: block;
    margin: 0 20px 20px;
    background: #673ab7;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.related-game-card .play-btn:hover {
    background: #5e35b1;
}

/* Screenshot Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#screenshot-preview {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#screenshot-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.screenshot-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.download-btn,
.share-btn {
    background: #673ab7;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover,
.share-btn:hover {
    background: #5e35b1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-interface {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .customization-panel {
        order: -1;
    }
    
    .panel-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tab-btn {
        padding: 12px 5px;
        font-size: 0.75rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    
    .game-info {
        padding: 30px 0;
    }
    
    .game-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .game-title h1 {
        font-size: 2rem;
    }
    
    .game-area {
        padding: 30px 0;
    }
    
    .avatar-display {
        padding: 20px;
    }
    
    .avatar-container {
        max-width: 300px;
    }
    
    .avatar-character {
        width: 220px;
        height: 280px;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .panel-content {
        padding: 20px;
        max-height: 400px;
    }
    
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .option-item img {
        width: 40px;
        height: 40px;
    }
    
    .option-item span {
        font-size: 0.7rem;
    }
    
    .color-palette {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .color-option {
        width: 30px;
        height: 30px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .feature {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 0 15px;
    }
    
    .game-title h1 {
        font-size: 1.8rem;
    }
    
    .game-tags {
        gap: 5px;
    }
    
    .game-tags .tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .avatar-display {
        padding: 15px;
    }
    
    .control-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .tab-btn {
        padding: 10px 3px;
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .options-group h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .option-item {
        padding: 8px;
    }
    
    .option-item img {
        width: 35px;
        height: 35px;
    }
    
    .option-item span {
        font-size: 0.65rem;
    }
    
    .screenshot-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .share-btn {
        width: 100%;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .option-item {
        border-width: 3px;
    }
    
    .tab-btn {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .control-btn,
    .download-btn,
    .share-btn {
        border: 2px solid white;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .control-btn,
    .option-item,
    .tab-btn,
    .related-game-card {
        transition: none;
    }
    
    .fade-in,
    .pulse,
    .loading::after {
        animation: none;
    }
}