/* PlayfoxStore - White & Purple Theme */
:root {
    --primary-purple: #6B46C1;
    --primary-purple-dark: #553C9A;
    --primary-purple-light: #8B5CF6;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --gray: #E5E7EB;
    --dark-gray: #6B7280;
    --text-dark: #1F2937;
    --success: #10B981;
    --shadow: rgba(107, 70, 193, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    animation: bannerZoom 20s ease-in-out infinite;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.85) 0%, rgba(85, 60, 154, 0.75) 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    padding: 3rem 0 0 0;
    color: var(--white);
}

.banner-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0;
    min-height: 400px;
}

.banner-avatar-left {
    flex-shrink: 0;
    width: 350px;
    height: auto;
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-bottom: 0;
}

.avatar-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: fadeInUp 1s ease-out 0.8s both;
    vertical-align: bottom;
    display: block;
}

.banner-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.banner-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.banner-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.banner-badge {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-badge span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.banner-badge span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-badge {
        flex-direction: column;
        gap: 1rem;
    }
    
    .banner-badge span {
        text-align: center;
    }
    
    .banner-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .banner-avatar-left {
        width: 200px;
        order: 2;
    }
    
    .banner-text-content {
        order: 1;
        text-align: center;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: var(--white);
}

.best-sellers-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.2);
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.game-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(107, 70, 193, 0.9);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-framework {
    margin-bottom: 0.5rem;
}

.framework-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(107, 70, 193, 0.3);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 70, 193, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-thumbnail:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #FBBF24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.game-price {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.current-price {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: bold;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--light-gray);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.security-note {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-purple);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Game Detail Page */
.game-detail {
    padding: 2rem 0 4rem;
}

.back-link {
    color: var(--primary-purple);
    text-decoration: none;
    margin-bottom: 2rem;
    display: inline-block;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.game-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.game-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-item:hover {
    border-color: var(--primary-purple);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.game-category-badge {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.game-rating-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.game-rating-large .stars {
    color: #FBBF24;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.game-rating-large .rating-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.game-rating-large .review-count {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.reviews-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray);
}

.reviews-section h2 {
    color: var(--primary-purple);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-rating .stars {
    color: #FBBF24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.review-email {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.review-comment {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.game-description {
    margin: 2rem 0;
    line-height: 1.8;
}

.youtube-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.game-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--dark-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--primary-purple);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.game-name-display,
.price-display {
    font-size: 1.1rem;
    color: var(--primary-purple);
    font-weight: 600;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.success-modal ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.success-modal li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.success-modal li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-purple-light);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.legal-page h1 {
    color: var(--primary-purple);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    margin-top: 2rem;
    font-style: italic;
    color: var(--dark-gray);
}

/* Demo Content */
#demoContent {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .game-detail-content {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}


