/* ============================================================================
   SENTIENT MARKETS - MARKETPLACE STYLES
   ============================================================================ */

/* ============================================================================
   PAGE LAYOUT
   ============================================================================ */

.page-marketplace {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
    color: #e0e0e0;
}

.marketplace-header {
    padding: 60px 0 40px;
    text-align: center;
}

.marketplace-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marketplace-header .page-header-desc {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================================================
   SEARCH BAR
   ============================================================================ */

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.search-input::placeholder {
    color: #666;
}

/* ============================================================================
   TRADING STYLES (CATEGORY SHORTCUTS)
   ============================================================================ */

.trading-styles {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-styles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.style-card:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateY(-5px);
}

.style-card.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.style-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.style-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.style-count {
    font-size: 0.85rem;
    color: #a0a0a0;
}

/* ============================================================================
   FEATURED BUNDLES CAROUSEL
   ============================================================================ */

.featured-bundles {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 2rem;
}

.section-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.bundles-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 10px;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

/* Bundle Card */
.bundle-card {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bundle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bundle-header h4 {
    font-size: 1.1rem;
    color: #fff;
    flex: 1;
}

.bundle-discount {
    background: linear-gradient(135deg, #ff006e, #ff4500);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.bundle-desc {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.bundle-pricing {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.bundle-original {
    text-decoration: line-through;
    color: #666;
}

.bundle-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff88;
}

.bundle-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 15px;
}

/* ============================================================================
   TRENDING SECTION
   ============================================================================ */

.trending-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.trending-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.trending-info {
    flex: 1;
}

.trending-info h4 {
    color: #fff;
    margin-bottom: 5px;
}

.trending-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.trending-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
    margin: 0 15px;
}

/* ============================================================================
   SKILLS LAYOUT
   ============================================================================ */

.skills-section {
    padding: 60px 0;
}

.skills-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .skills-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   FILTERS SIDEBAR
   ============================================================================ */

.filters-sidebar {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #00ff88;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #a0a0a0;
    transition: color 0.2s ease;
}

.filter-label:hover {
    color: #fff;
}

.filter-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ff88;
}

.filter-label span {
    font-size: 0.95rem;
}

.filter-group label:first-child {
    font-weight: 600;
    color: #fff;
}

.sort-select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.sort-select option {
    background: #0a0e27;
    color: #fff;
}

/* ============================================================================
   SKILLS GRID
   ============================================================================ */

.skills-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   SKILL CARD
   ============================================================================ */

.skill-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.skill-card h4 {
    flex: 1;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.3;
}

.skill-tier {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tier-free {
    background: rgba(100, 200, 100, 0.3);
    color: #64c864;
}

.tier-starter {
    background: rgba(100, 150, 255, 0.3);
    color: #6496ff;
}

.tier-trader {
    background: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.tier-master {
    background: rgba(255, 200, 0, 0.3);
    color: #ffc800;
}

.tier-elite {
    background: rgba(255, 100, 200, 0.3);
    color: #ff64c8;
}

.skill-desc {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.skill-synergies {
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #00ff88;
}

.synergies-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff88;
}

/* ============================================================================
   LOAD MORE & PAGINATION
   ============================================================================ */

.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
    text-align: center;
}

.skill-count {
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    margin: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #00ff88;
}

.skill-detail h2,
.bundle-detail h2 {
    margin-bottom: 20px;
    color: #fff;
}

.skill-detail-meta,
.bundle-detail-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.skill-detail-meta span,
.bundle-detail-pricing div {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.skill-detail-content,
.bundle-detail {
    margin-bottom: 30px;
}

.skill-detail-content h3,
.bundle-detail h3 {
    color: #00ff88;
    margin: 25px 0 15px;
    font-size: 1.1rem;
}

.skill-detail-content p,
.bundle-detail p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skill-detail-content ul,
.bundle-detail ul {
    list-style: none;
    padding-left: 0;
}

.skill-detail-content li,
.bundle-detail li {
    padding: 8px 0;
    padding-left: 20px;
    color: #a0a0a0;
    position: relative;
}

.skill-detail-content li:before,
.bundle-detail li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00ff88;
}

.skill-detail-footer,
.bundle-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-price,
.bundle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
}

/* ============================================================================
   CART NOTIFICATION
   ============================================================================ */

.cart-notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 15px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 900;
    transition: bottom 0.3s ease;
}

.cart-notification.visible {
    bottom: 20px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .marketplace-header h1 {
        font-size: 2.2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .styles-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .filters-sidebar {
        position: static;
        top: auto;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: 25px;
    }
}
