@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #bbbbbb; /* Lighter grey for accents */
    --secondary-color: #999999; /* Medium grey for hover effects */
    --dark-grey: #121212;      /* Very dark grey for background */
    --medium-grey: #1e1e1e;   /* Medium dark grey for cards */
    --light-grey: #2d2d2d;    /* Light grey for borders */
    --text-color: #f0f0f0;     /* Off-white for text */
    --font-family: 'Poppins', sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-grey);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    padding: 0.8rem 2rem;
    position: fixed;
    width: 95%;
    max-width: 1200px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000; /* Artırıldı */
    backdrop-filter: blur(15px);
    background: rgba(20, 20, 20, 0.9); /* Daha opak arka plan */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    opacity: 1 !important; /* Önemli: Görünürlüğü zorla */
    pointer-events: auto !important; /* Tıklanabilirliği etkinleştir */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2.5rem; /* Increase spacing */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.4s ease;
    -webkit-transition: width 0.4s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
    background-color: var(--primary-color);
}

nav a:hover {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.login-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.login-btn:hover {
    background-color: var(--light-grey);
    border-color: var(--secondary-color);
}

.discord-btn {
    background-color: #5865F2; /* Discord mavisi */
    padding: 0.6rem 1.8rem;
    border-radius: 25px; /* Daha oval yapıldı */
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    background-color: #4752C4; /* Daha koyu mavi hover rengi */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.6);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* The 80px top padding is only for pages that need it */
}

main.with-padding {
    padding-top: 80px;
}

.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Primary Call-to-Action Button (e.g., Browse Products) */
.btn-primary-glow {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 5px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    background: white;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 8px rgba(255, 255, 255, 0.9) inset;
}

.features-section {
    background-color: #111;
    padding: 4rem 5%;
}

.info-bar {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.journey, .features {
    text-align: center;
    margin-bottom: 4rem;
}

.journey h2, .features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.journey-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 4rem;
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-cards {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.card {
    background: var(--medium-grey);
    padding: 2rem;
    border-radius: 10px;
    flex-basis: 30%;
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Shop Page */
.shop-page, .products-page {
    padding: 2rem 5%;
}

.breadcrumb {
    margin: 4rem auto 2rem auto;
    padding: 0 1rem;
    font-size: 0.9rem;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    color: #aaa;
}

.breadcrumb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--text-color);
}

/* Shop Page Two-Card Layout */
/* Game Selection Section */
.game-selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin: 2rem 0;
    padding: 2rem 0;
}

.game-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
}

.game-card-container:hover {
    transform: translateY(-10px);
}

.game-name {
    margin-top: 1.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.game-card-container:hover .game-name {
    color: var(--primary-color);
}

.game-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.game-card-container:hover .game-name::after {
    width: 100%;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 0.5;
    background: linear-gradient(45deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.game-card {
    width: 400px;
    height: 225px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--medium-grey);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.fivem {
    background-image: url('../images/fivemcategory.png');
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.placeholder-1, .placeholder-2, .placeholder-3, .placeholder-4 {
    background-color: #2a2a2a;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    animation: none;
}

.valorant {
    background-image: url('../images/valorantcategory.png');
}

.fivem {
    background-image: url('../images/fivemcategory.png');
    background-size: cover; /* Ensure image covers the card */
}

.game-card-title {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Products Page */
/* Products Page Filter/Sort Header */
.products-header {
    display: flex;
    justify-content: flex-end; /* Align filters to the right */
    align-items: center;
    gap: 2rem; /* Space between filter groups */
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #1a1a1a; /* Dark background for the container */
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-group label {
    font-weight: 500;
    color: #ccc; /* Light grey text for labels */
}

.filter-select {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:hover {
    border-color: #ffffff; /* Highlight on hover */
}

.filter-select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Glow effect on focus */
}

#sorting {
    background: var(--light-grey);
    color: var(--text-color);
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Refactored for Grid Layout */
.product-card {
    background-color: #2a2a2a; /* Darker card background */
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    padding-top: 50%; /* 2:1 aspect ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Detaylar bölümünün kalan alanı doldurmasını sağlar */
    text-align: left;
}

.product-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #ffffff;
}

.product-details .description {
    color: #bbbbbb;
    font-size: 0.9em;
    flex-grow: 1; /* Açıklamanın mümkün olduğunca yer kaplamasını sağlar */
    margin-bottom: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Fiyat seçenekleri arası boşluk */
    margin-bottom: 15px;
}

.price-option {
    color: #ffffff;
    font-size: 0.95em;
}

.price-option strong {
    color: #ffffff;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px; /* Üstündeki elemanla boşluk bırakır */
    padding-top: 15px; /* Butonları içerik alanından ayırmak için */
    border-top: 1px solid #333; /* Butonları ayıran ince bir çizgi */
}

.btn-details, .btn-purchase {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

/* Details button - Ana Eylem (Outline Stili) */
.btn-details {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-details:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Purchase button - İkincil Eylem (Gri Stil) */
.btn-purchase {
    background-color: #3a3a3a;
    color: #cccccc;
    border: none;
}

.btn-purchase:hover {
    background-color: #4a4a4a;
}

.discount-badge, .new-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    background-color: #7b1fa2;
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(-45deg);
    transform-origin: top left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.new-badge {
    background-color: #27ae60; /* Green */
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; opacity: 0; }
.delay-2 { animation-delay: 0.6s; opacity: 0; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* FAQ Page Styles */
.faq-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.faq-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--medium-grey);
    border-radius: 8px;
    border: 1px solid var(--light-grey);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.faq-question i {
    transition: transform 0.3s ease-in-out;
    font-size: 1rem;
}

.faq-question .fa-minus {
    display: none;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question .fa-minus {
    display: inline-block;
}

.faq-item.active .faq-question .fa-plus {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed for content */
}

/* =================================
   Product Detail Page Modernization
   ================================= */

.product-detail-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 4rem 0;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.product-detail-image-wrapper {
    flex: 1;
    max-width: 450px;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--light-grey);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-detail-image:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.product-detail-info {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: -webkit-linear-gradient(45deg, #eee, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-detail-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 60ch;
}

.product-detail-prices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.price-option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--medium-grey);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--light-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-option-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    background-color: #252525;
}

.price-period {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-purchase-discord {
    display: inline-block;
    background: linear-gradient(45deg, #5865F2, #7289DA);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    align-self: flex-start;
    border: none;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
}

.btn-purchase-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* Breadcrumbs specific to product page */
#breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    max-width: 1100px;
    margin: 0 auto;
}

#breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#breadcrumbs a:hover {
    color: var(--primary-color);
}

#breadcrumbs span {
    color: var(--text-color);
    font-weight: 600;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
}

