/* ============================================
   Pixaland Main Stylesheet
   ============================================ */

/* Import Marketplace Styles - Add this at the very top */
@import url('/assets/css/marketplace.css');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* ============================================
   Logo Styles (Header)
   ============================================ */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #6366f1;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.2rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: #2a2a2a;
    color: #6366f1;
}

.dropdown-menu a i {
    width: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #e5e5e5;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-tool {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-tool:hover {
    background: #6366f1;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 40px;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu-btn:hover {
    background: #2a2a2a;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    margin-top: 8px;
    z-index: 100;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.2rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.user-dropdown a:hover {
    background: #2a2a2a;
    color: #6366f1;
}

.user-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #2a2a2a;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #0f0f0f;
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Mobile Navigation Logo */
.mobile-nav-header .logo-icon {
    width: 32px;
    height: 32px;
}

.mobile-nav-header .logo-text {
    font-size: 1.2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a2a2a;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: #6366f1;
}

.mobile-nav-footer {
    padding: 1.25rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 0.75rem;
}

.mobile-nav-footer .btn-outline,
.mobile-nav-footer .btn-primary {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Main Content */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a, #0f0f0f);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-dark {
    background: #0f0f0f;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #818cf8;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* Cards */
.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
}

.card-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

/* Tool Cards */
.tool-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tool-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: #2a2a2a;
    border-radius: 100px;
    color: #9ca3af;
}

/* AI Cards */
.ai-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.ai-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.ai-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.ai-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ai-card p {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Product Cards */
.product-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #6366f1;
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #ec4899);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 1.5rem 0;
}

.price span {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta .btn-primary {
    background: white;
    color: #6366f1;
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Footer Brand / Logo Styles */
.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 50%;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* Footer Sections */
.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: #6366f1;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #6b6b6b;
    font-size: 0.8rem;
}

.footer-payment {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .grid-4, .grid-5, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Grids */
    .grid-4, .grid-5, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-icon {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo span {
        font-size: 1.3rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .site-main {
        margin-top: 70px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Header */
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Buttons */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-logo span {
        font-size: 1.2rem;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
}