/* 
 * SILADU - Landing Page Styles
 * DKUPP Kabupaten Subang
 */

/* Header & Navbar */
.navbar-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.navbar-landing .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-landing .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.navbar-landing .brand img {
    height: 40px;
    width: auto;
}
.navbar-landing .brand-text {
    font-weight: 900;
    font-size: 1.5rem;
    background: linear-gradient(to right, #38bdf8 0%, #34d399 50%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.text-gradient-premium {
    background: linear-gradient(to right, #38bdf8 0%, #34d399 50%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-landing .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-landing .nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.navbar-landing .nav-links a:hover {
    color: #38bdf8;
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 9999;
}
.mobile-menu-btn:hover {
    color: #38bdf8;
}
.navbar-landing .nav-links .btn-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}
.navbar-landing .nav-links .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 0 0; /* Only top padding for navbar */
    min-height: auto;
    background: #0f172a;
    overflow: hidden;
    display: block;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    z-index: 10;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}
.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.hero-img-container {
    display: flex;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
    width: 100%;
}
.hero-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Use dynamic height or a cinematic ratio */
    aspect-ratio: 21/9;
    display: flex;
}
.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-slider-track .hero-img {
    flex-shrink: 0;
    width: 100vw; /* Force exactly viewport width */
    height: 100%;
    object-fit: cover;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Section */
.stats-section {
    background: #0f172a;
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(37, 99, 235, 0.3);
}
.stat-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}
.stat-card:nth-child(2) .stat-icon { color: #f97316; }
.stat-card:nth-child(3) .stat-icon { color: #10b981; }
.stat-card:nth-child(4) .stat-icon { color: #a855f7; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Search & Filter Section */
.search-section {
    background: #f8fafc;
    padding: 50px 20px;
}
.search-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}
.search-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}
.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}
.search-input, .search-select {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus, .search-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.btn-search {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    transition: all 0.2s ease;
}
.btn-search:hover {
    background: #1d4ed8;
}

/* Products Section */
.products-section {
    padding: 80px 20px;
    background: #ffffff;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
}
.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

/* Featured Marquee Carousel */
.featured-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 15px 0 35px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.featured-marquee-container::before,
.featured-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}
.featured-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}
.featured-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}
.featured-marquee-track {
    display: inline-flex;
    gap: 30px;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    padding-left: 30px; /* initial offset to prevent sticking to edge */
}
.featured-marquee-track:hover {
    animation-play-state: paused;
}
.featured-marquee-track .product-card {
    flex: 0 0 290px;
    white-space: normal;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.product-badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}
.product-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.08);
}
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 12px;
}
.product-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}
.product-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.owner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    object-fit: cover;
}
.owner-info {
    display: flex;
    flex-direction: column;
}
.owner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}
.owner-name:hover {
    color: #2563eb;
}
.owner-location {
    font-size: 0.75rem;
    color: #64748b;
}

/* UMKM Section */
.umkm-section {
    padding: 80px 20px;
    background: #f8fafc;
}
.umkm-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.umkm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}
.umkm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    border-color: #cbd5e1;
}
.umkm-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f1f5f9;
    object-fit: cover;
    flex-shrink: 0;
}
.umkm-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.umkm-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    text-decoration: none;
}
.umkm-name:hover {
    color: #2563eb;
}
.umkm-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.umkm-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.umkm-category-badge {
    align-self: flex-start;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Charts Section */
.charts-section {
    padding: 80px 20px;
    background: #0f172a;
    color: #ffffff;
}
.charts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}
.charts-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}
.charts-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Catalog Layout */
.catalog-page-section {
    padding: 120px 20px 80px 20px; /* space for fixed navbar */
    background: #f8fafc;
    min-height: 100vh;
}
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }
}
.catalog-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.catalog-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.catalog-filter-group {
    margin-bottom: 24px;
}
.catalog-filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}
.catalog-input, .catalog-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.catalog-input:focus, .catalog-select:focus {
    border-color: #3b82f6;
    background: #ffffff;
}
.catalog-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.catalog-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.catalog-checkbox-group label {
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}
.catalog-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0; /* Prevent CSS grid blowout */
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.catalog-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}
.catalog-results-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}
.catalog-btn-filter {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.catalog-btn-filter:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #090d16;
    color: #94a3b8;
    padding: 80px 20px 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer-logo img {
    height: 45px;
}
.footer-logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.footer-desc {
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}
.footer-socials a:hover {
    background: #2563eb;
    color: #ffffff;
}
.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #38bdf8;
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
}
.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.footer-info-item i {
    color: #38bdf8;
    margin-top: 3px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer-copyright {
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .search-grid button {
        grid-column: span 2;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .navbar-landing .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust according to navbar height */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-landing .nav-links.active {
        display: flex !important;
    }
    .navbar-landing .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    .navbar-landing .nav-links .btn-login {
        display: block;
        margin: 10px auto !important;
        width: max-content;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .umkm-grid {
        grid-template-columns: 1fr;
    }
    .catalog-top-filter form {
        flex-direction: column;
        align-items: stretch !important;
    }
    .catalog-top-filter form > div {
        width: 100%;
    }
}
