/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #19191f;
    color: #d4d5d4;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    background-color: #19191f;
    border-bottom: 1px solid #2d3141;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-link {
    font-size: 28px;
    font-weight: 700;
    color: #5b69e0;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #d4d5d4;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #5b69e0;
}

.nav-link.active {
    color: #5b69e0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background-color: #2d3141;
    border: 1px solid #425a6c;
    color: #d4d5d4;
    padding: 8px 16px 8px 40px;
    border-radius: 6px;
    width: 280px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #5b69e0;
}

.search-input::placeholder {
    color: #6c6a6c;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #6c6a6c;
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #d4d5d4;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #19191f 0%, #262f6c 100%);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #5b69e0;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    color: #d4d5d4;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #5b69e0;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #799dc8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #5b69e0;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -1px;
}

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

.featured-card {
    background-color: #2d3141;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #425a6c;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91, 105, 224, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #2d3141, #425a6c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #d4d5d4;
    margin-bottom: 12px;
}

.card-content p {
    color: #799dc8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    color: #5b69e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #799dc8;
}

/* Recent Items Section */
.recent-items {
    padding: 80px 0;
    background-color: #1a1a20;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.item-card {
    background-color: #2d3141;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #425a6c;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.item-card:hover {
    transform: translateY(-2px);
    border-color: #5b69e0;
}

.item-image {
    height: 120px;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #2d3141, #425a6c);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #d4d5d4;
    margin-bottom: 8px;
}

.item-price {
    font-size: 14px;
    color: #5b69e0;
    font-weight: 600;
}

.item-rarity {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.rarity-covert { background-color: #cb3b93; color: white; }
.rarity-classified { background-color: #cb3b93; color: white; }
.rarity-restricted { background-color: #799dc8; color: white; }
.rarity-mil-spec { background-color: #5b69e0; color: white; }
.rarity-industrial { background-color: #6c6a6c; color: white; }
.rarity-consumer { background-color: #799dc8; color: white; }

/* Market Insights */
.market-insights {
    padding: 80px 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.insight-card {
    background-color: #2d3141;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #425a6c;
}

.insight-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #5b69e0;
    margin-bottom: 16px;
}

.insight-card p {
    color: #799dc8;
    margin-bottom: 20px;
}

.insight-card ul {
    list-style: none;
}

.insight-card li {
    color: #d4d5d4;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.insight-card li::before {
    content: "✓";
    color: #5b69e0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 48px;
}

.btn-primary {
    background-color: #5b69e0;
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #799dc8;
}

/* Footer */
.footer {
    background-color: #1a1a20;
    border-top: 1px solid #2d3141;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #5b69e0;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #d4d5d4;
    margin-bottom: 16px;
}

.footer-section p {
    color: #799dc8;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact p {
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #799dc8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #5b69e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #2d3141;
}

.footer-bottom p {
    color: #6c6a6c;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 28px;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-input {
        width: 200px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .featured-section,
    .recent-items,
    .market-insights {
        padding: 48px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .search-input {
        width: 150px;
    }
}

/* Additional utility classes */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6c6a6c;
}

.error {
    color: #cb3b93;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}
