/* Game Variation Card Styling */
.game-variation-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 20px auto;
    border: 2px solid var(--border-color);
}

.game-variation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Game Images Section */
.game-images {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), #f8f9fa);
    padding: 20px;
}

.game-images .img-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-images .img-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-images .slide-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-images .img-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.game-images .img-prev,
.game-images .img-next {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.game-images .img-prev:hover,
.game-images .img-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.game-images .img-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.game-images .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-images .dot.active {
    background: var(--fire-orange);
    transform: scale(1.2);
}

/* Game Info Section */
.game-info {
    padding: 30px 25px 20px 25px;
    flex: 1;
}

.game-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.game-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.release-info {
    font-size: 0.85rem;
    color: var(--fire-orange);
    font-weight: 500;
}

/* Variation Selector Section */
.variation-selector {
    padding: 0 25px 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tab {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.platform-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-tab.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--fire-orange);
    background: rgba(255, 107, 53, 0.1);
}

/* Platform Badge Styles */
.platform-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.platform-badge.ps {
    background: linear-gradient(135deg, #0070d1, #0099ff);
    color: white;
}

.platform-badge.xbox {
    background: linear-gradient(135deg, #107c10, #16c60c);
    color: white;
}

.platform-badge.pc {
    background: linear-gradient(135deg, #ff6b35, #ffa502);
    color: white;
}

.platform-badge.unknown {
    background: var(--text-secondary);
    color: white;
}

/* Edition Grid */
.edition-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edition-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    min-height: 60px;
}

.edition-card:hover {
    border-color: var(--fire-orange);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.edition-card.active {
    border-color: var(--fire-orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    box-shadow: 0 0 0 2px var(--fire-orange), 0 4px 12px rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
}

.edition-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.edition-price {
    font-weight: bold;
    color: var(--fire-orange);
    font-size: 1.1rem;
}

.edition-buy-btn {
    background: linear-gradient(135deg, var(--fire-orange), #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    min-width: 80px;
}

.edition-buy-btn:hover {
    background: linear-gradient(135deg, #e63900, var(--fire-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
}

.single-edition {
    margin-top: 15px;
}

.single-buy-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--fire-orange), #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.single-buy-button:hover {
    background: linear-gradient(135deg, #e63900, var(--fire-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
}

.edition-badge {
    font-size: 0.75rem;
    background: var(--fire-orange);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Buy Button */
.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fire-orange), #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    padding: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

.buy-button:hover {
    background: linear-gradient(135deg, #e63900, var(--fire-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.selected-info {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: normal;
}

.buy-text {
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-variation-card {
        margin: 15px 10px;
        max-width: calc(100% - 20px);
    }
    
    .game-images {
        height: 300px;
        padding: 15px;
    }
    
    .game-info {
        padding: 20px 15px 15px 15px;
    }
    
    .variation-selector {
        padding: 0 15px 20px 15px;
        gap: 15px;
    }
    
    .edition-card {
        padding: 12px 16px;
        min-height: 50px;
    }
    
    .platform-tabs {
        justify-content: center;
        gap: 6px;
    }
    
    .platform-tab {
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
}

/* Loading State */
.game-variation-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.game-variation-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--fire-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error State */
.game-variation-card.error {
    border: 2px solid #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.game-variation-card.error .game-info {
    text-align: center;
    color: #ff4444;
}

/* New Grid Layout for Game Variations */
.game-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 2px solid var(--border-color);
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.game-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
}

.variations-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.platform-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.platform-icon {
    font-size: 1.2rem;
}

.editions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edition-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.edition-card:hover {
    border-color: var(--fire-orange);
    transform: translateY(-1px);
}

.edition-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edition-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1rem;
}

.edition-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.edition-price .price {
    font-weight: bold;
    color: var(--fire-orange);
    font-size: 1.1rem;
}

.edition-price .availability {
    font-size: 0.8rem;
}

.buy-btn {
    background: linear-gradient(135deg, var(--fire-orange), #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #e63900, var(--fire-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Edition Badges - Elegant Glass Style */
.edition-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.edition-badge.collectors {
    background: linear-gradient(135deg, #c9b037, #f4e99b);
    box-shadow: 0 2px 12px rgba(201, 176, 55, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edition-badge.seekers {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edition-badge.deluxe {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 2px 12px rgba(240, 147, 251, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edition-badge.special {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 2px 12px rgba(79, 172, 254, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edition-badge.standard {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    box-shadow: 0 2px 12px rgba(116, 185, 255, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edition-badge.unknown {
    background: linear-gradient(135deg, #636e72, #2d3436);
    box-shadow: 0 2px 12px rgba(99, 110, 114, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Responsive Design für das neue Grid */
@media (max-width: 768px) {
    .game-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .game-images {
        min-height: 180px;
        max-height: 280px;
    }
    
    .edition-card {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .platform-section {
        padding: 12px;
    }
    
    .variations-grid {
        gap: 15px;
    }
}