/**
 * Los Angeles City Roleplay - Marketplace Styles
 */

/* Touch-friendly improvements */
.product-card,
.product-card-full,
.step-card,
.help-card,
.term-item,
.marketplace-nav > a,
.cta-buttons .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Marketplace Hero */
.marketplace-hero {
    min-height: 70vh;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(77, 166, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(77, 166, 255, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-color) 0%, var(--dark-bg) 100%);
}

/* Override base hero pseudo-elements */
.marketplace-hero::before,
.marketplace-hero::after {
    display: none;
}

/* Remove any box/border from hero content */
.marketplace-hero .hero-content,
.marketplace-hero .hero-content.fade-in {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    max-width: 800px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hide the decorative glow element */
.marketplace-hero .hero-glow {
    display: none;
}

/* Marketplace Sub-Navigation (for marketplace internal pages) */
.marketplace-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.marketplace-nav > a {
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.marketplace-nav > a::after {
    display: none;
}

.marketplace-nav > a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
}

.marketplace-nav > a.active {
    color: #000;
    background: var(--primary-color);
}

/* Product Showcase (Home page) */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.product-card.featured {
    border-color: rgba(77, 166, 255, 0.3);
    background: linear-gradient(145deg, rgba(77, 166, 255, 0.05) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.product-card .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #000;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card .product-badge.premium {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    color: #fff;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(77, 166, 255, 0.3);
}

.product-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Product Cards Full (Buy page) */
.product-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.products-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.product-card-full {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-full.premium {
    border-color: rgba(77, 166, 255, 0.4);
}

.product-card-full.premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(77, 166, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.product-card-full .premium-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(77, 166, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.product-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.product-card-full.wide {
    max-width: 100%;
}

.product-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.product-icon-large {
    width: 60px;
    height: 60px;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(77, 166, 255, 0.3);
    flex-shrink: 0;
}

.product-icon-large svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.product-title-section h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.product-title-section .product-badge {
    display: inline-block;
    background: rgba(77, 166, 255, 0.15);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-section .product-badge.popular {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.product-title-section .product-badge.premium {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(52, 152, 219, 0.3));
    color: #a58fd8;
}

.product-body {
    padding: 0 2rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    color: var(--text-color);
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-features.horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.product-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.product-price .currency {
    font-size: 1rem;
    color: var(--text-muted);
}

.product-price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Purchase Info Section */
.purchase-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card ol {
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.info-card ol li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* CTA Section */
.marketplace-cta {
    text-align: center;
    padding: 4rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.marketplace-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.marketplace-cta h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.marketplace-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Page Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3.5rem;
}

.about-section h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(77, 166, 255, 0.2);
}

.about-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

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

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.benefits-list li {
    color: var(--text-color);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.payment-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.payment-details p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.help-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.help-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.help-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.help-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Policy Page Styles */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.policy-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.policy-card.warning {
    background: rgba(77, 166, 255, 0.05);
    border-color: rgba(77, 166, 255, 0.2);
}

.policy-icon {
    width: 50px;
    height: 50px;
    background: rgba(77, 166, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.policy-icon svg {
    width: 24px;
    height: 24px;
    color: #4da6ff;
}

.policy-text h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.policy-text p {
    margin: 0;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.term-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.term-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.term-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.prohibited-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.prohibited-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.x-icon {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.prohibited-item p {
    margin: 0;
    color: var(--text-color);
}

.warning-text {
    color: #dc3545 !important;
    font-weight: 500;
}

.support-steps {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.support-steps li {
    color: var(--text-color);
    padding: 0.5rem 0;
    line-height: 1.6;
}

.agreement-box {
    background: rgba(77, 166, 255, 0.05);
    border: 2px solid rgba(77, 166, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.agreement-box p {
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .marketplace-hero {
        min-height: 60vh;
    }

    .marketplace-hero .hero-glow {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    /* Hero adjustments */
    .marketplace-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .marketplace-hero .hero-glow {
        width: 300px;
        height: 300px;
        opacity: 0.5;
    }

    /* Product grids */
    .products-grid,
    .products-grid.three-col {
        grid-template-columns: 1fr;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Product cards */
    .product-card {
        padding: 2rem;
    }

    .product-card:hover {
        transform: none;
    }

    .product-icon {
        width: 70px;
        height: 70px;
    }

    .product-icon svg {
        width: 35px;
        height: 35px;
    }

    .product-card h3 {
        font-size: 1.3rem;
    }

    /* Full product cards */
    .product-card-full:hover {
        transform: none;
    }

    .product-header {
        padding: 1.5rem;
    }

    .product-body {
        padding: 0 1.5rem;
    }

    .product-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .product-icon-large {
        width: 50px;
        height: 50px;
    }

    .product-icon-large svg {
        width: 26px;
        height: 26px;
    }

    .product-title-section h3 {
        font-size: 1.2rem;
    }

    /* Steps grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    /* Help options */
    .help-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Purchase info */
    .purchase-info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Marketplace nav */
    .marketplace-nav {
        gap: 0.25rem;
        padding: 0.4rem;
        margin-bottom: 2rem;
    }

    .marketplace-nav > a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Product features */
    .product-features.horizontal {
        grid-template-columns: 1fr;
    }

    .product-features li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }

    /* Payment info */
    .payment-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .payment-icon {
        width: 60px;
        height: 60px;
    }

    .payment-icon svg {
        width: 30px;
        height: 30px;
    }

    /* CTA */
    .marketplace-cta {
        padding: 2rem 1.25rem;
    }

    .marketplace-cta h2 {
        font-size: 1.4rem;
    }

    .marketplace-cta p {
        font-size: 0.95rem;
    }

    /* About sections */
    .about-section h2 {
        font-size: 1.3rem;
    }

    /* Policy cards */
    .policy-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .policy-icon {
        width: 45px;
        height: 45px;
    }

    .policy-section h2 {
        font-size: 1.3rem;
    }

    /* Term items */
    .term-item {
        padding: 1.25rem;
    }

    .term-item h4 {
        font-size: 0.95rem;
    }

    /* Prohibited items */
    .prohibited-item {
        padding: 0.875rem 1rem;
    }

    /* Category titles */
    .category-title {
        font-size: 1.5rem;
    }

    /* Benefits list */
    .benefits-list li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Hero adjustments */
    .marketplace-hero {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .marketplace-hero .hero-glow {
        display: none;
    }

    /* Product header */
    .product-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .product-title-section {
        text-align: center;
    }

    .product-title-section h3 {
        font-size: 1.1rem;
    }

    .product-body {
        padding: 0 1.25rem;
    }

    /* Product footer */
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.25rem 1.25rem;
    }

    .product-footer .btn {
        width: 100%;
    }

    .product-price .amount {
        font-size: 1.5rem;
    }

    /* Product cards */
    .product-card {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.2rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }

    /* Policy cards */
    .policy-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Marketplace nav */
    .marketplace-nav {
        padding: 0.35rem;
    }

    .marketplace-nav > a {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
    }

    /* Info card */
    .info-card {
        padding: 1.25rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    /* CTA section */
    .marketplace-cta h2 {
        font-size: 1.25rem;
    }

    .marketplace-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Step cards */
    .step-card {
        padding: 1.25rem;
    }

    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    /* Help cards */
    .help-card {
        padding: 1.25rem;
    }

    .help-card h4 {
        font-size: 1rem;
    }

    /* Agreement box */
    .agreement-box {
        padding: 1.25rem;
    }

    .agreement-box p {
        font-size: 0.9rem;
    }

    /* Category */
    .category-title {
        font-size: 1.3rem;
    }

    .category-description {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .marketplace-nav > a {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .marketplace-cta {
        padding: 1.5rem 1rem;
    }

    .marketplace-cta h2 {
        font-size: 1.15rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .about-section h2,
    .policy-section h2 {
        font-size: 1.15rem;
    }
}

