/* ===== Products Page Styles ===== */

/* Top Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--purple-primary);
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.top-banner a:hover {
    opacity: 0.8;
}

.products-page {
    padding-top: 180px; /* Banner (32px) + Navbar (~60px) + Spacing */
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Products Header */
.products-header {
    text-align: center;
    margin-bottom: 48px;
}

.products-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.title-accent {
    color: var(--purple-primary);
}

.products-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.products-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.products-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.products-search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.products-search input::placeholder {
    color: var(--text-muted);
}

.products-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 214, 0.2);
}

/* Category Header */
.category-header {
    text-align: center;
    padding: 40px 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--purple-primary);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.category-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.category-icon.fortnite {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-icon.cod {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-icon.spoofer {
    color: var(--purple-primary);
    background: rgba(0, 115, 214, 0.1);
    border-color: rgba(0, 115, 214, 0.3);
}

.category-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 40px 0 80px;
}

.product-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    aspect-ratio: 4/5;
}

/* Scroll Animation Classes */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for multiple items */
.scroll-fade-in:nth-child(1) { transition-delay: 0s; }
.scroll-fade-in:nth-child(2) { transition-delay: 0.1s; }
.scroll-fade-in:nth-child(3) { transition-delay: 0.2s; }
.scroll-fade-in:nth-child(4) { transition-delay: 0.3s; }
.scroll-fade-in:nth-child(5) { transition-delay: 0.4s; }
.scroll-fade-in:nth-child(6) { transition-delay: 0.5s; }
.scroll-fade-in:nth-child(7) { transition-delay: 0.6s; }
.scroll-fade-in:nth-child(8) { transition-delay: 0.7s; }

.product-list-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-list-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    inset: 0;
}

.product-list-card:hover .product-list-image img {
    transform: scale(1.05);
}

.product-list-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 2;
}

.product-list-overlay-top {
    display: flex;
    justify-content: flex-start;
}

.product-list-overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-list-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-purple);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    width: fit-content;
    color: white;
}

.product-game-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.product-game-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.product-list-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 3;
    display: none; /* Versteckt, da wir alles im Overlay haben */
}

.product-list-header {
    margin-bottom: 16px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--purple-primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-category.fortnite {
    color: #ffffff;
}

.product-category.fortnite-white {
    color: #ffffff;
}

.product-category.cod-white {
    color: #ffffff;
}

.category-logo-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.product-category.cod {
    color: #ffffff;
}

.product-list-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Product Detail Page ===== */

.product-detail {
    padding-top: 132px; /* Banner (32px) + Navbar (~60px) + Spacing (40px) */
    min-height: 100vh;
    background: var(--bg-primary);
}

.product-detail-container {
    padding: 40px 0 80px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.product-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-breadcrumb span.fortnite {
    color: #f59e0b;
}

.product-breadcrumb span.fortnite-logo {
    color: white;
}

.product-breadcrumb span.cod-logo {
    color: white;
}

.product-breadcrumb span.spoofer {
    color: var(--purple-primary);
}

.breadcrumb-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.product-detail-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/10;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--purple-primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Purchase Panel */
.product-purchase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pricing-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-option:hover {
    border-color: var(--border-hover);
}

.pricing-option.selected {
    border-color: var(--purple-primary);
    background: rgba(0, 115, 214, 0.1);
}

.pricing-option-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-duration {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-option-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-stock {
    font-size: 11px;
    color: var(--text-muted);
}

.pricing-stock.in-stock {
    color: var(--green-accent);
}

.pricing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.purchase-button {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-purple);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--purple-glow);
}

.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--purple-glow);
}

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Features Section */
.product-features {
    margin-top: 60px;
}

.product-features h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.product-features h2::before {
    content: 'Features';
    position: absolute;
    font-size: 60px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    top: -20px;
    left: 0;
    z-index: 0;
}

.features-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
}

/* Scroll animation for features */
.features-box.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.features-box.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-category {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.features-category h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.features-list {
    padding: 16px 20px;
}

.features-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features-list li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list li::before {
    content: '•';
    color: var(--purple-primary);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-title {
        font-size: 36px;
    }
    
    .products-subtitle {
        font-size: 16px;
    }
    
    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .product-list-card {
        aspect-ratio: 3/4;
    }
}
