/*
Theme Name: WPCoder Theme
Theme URI: https://example.com
Description: A custom theme converted from HTML.
Author: WPCoder
Author URI: https://example.com
Version: 1.0
text-domain: wpcoder
*/

/* CSS Reset & Variables */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --dark: #0f172a;
    --dark-secondary: #334155;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-secondary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-text {
    font-weight: 600;
    color: var(--dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background-color: #ede9fe;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-bar i {
    color: var(--gray);
    margin-left: 1rem;
    font-size: 1.2rem;
}

.search-bar input {
    border: none;
    padding: 0.8rem;
    flex: 1;
    font-size: 1rem;
    outline: none;
}

.search-bar .btn {
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
}

.tags {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tags a {
    color: var(--dark-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(51, 65, 85, 0.3);
}

/* Filters */
.filters {
    padding: 2rem 0;
    position: sticky;
    top: 73px;
    /* Height of navbar approx */
    background: #f8fafc;
    z-index: 10;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--dark-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* Gallery */
.gallery {
    padding: 2rem 0 4rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.card-image img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.card-image:hover .overlay {
    opacity: 1;
}

.btn-white {
    background: white;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-white:hover {
    background: #f8fafc;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fffbeb;
    color: #d97706;
    /* Amber-600 */
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.rating i {
    color: #f59e0b;
    /* Amber-500 */
}

.category {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* CTA */
.cta {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    color: #94a3b8;
    /* Slate-400 */
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-dark {
    background: white;
    color: var(--dark);
    font-weight: 700;
}

.btn-dark:hover {
    background: #f1f5f9;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 1rem;
    max-width: 250px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
}

/* Product Detail Styles */
.product-header {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--dark-secondary);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.product-content {
    padding: 3rem 0 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
}

/* Visuals Column */
.main-preview {
    background: white;
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.main-preview img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.screenshot-item {
    background: #e2e8f0;
    height: 100px;
    border-radius: 8px;
    /* Placeholder pattern */
    background-image: linear-gradient(45deg, #e2e8f0 25%, #f1f5f9 25%, #f1f5f9 50%, #e2e8f0 50%, #e2e8f0 75%, #f1f5f9 75%, #f1f5f9 100%);
    background-size: 20px 20px;
}

.product-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.product-description h3:first-child {
    margin-top: 0;
}

.product-description p {
    color: var(--dark-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-secondary);
}

.features-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sidebar Column */
.product-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.sidebar-card h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.version {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--dark);
    background: transparent;
}

.tech-stack {
    margin-bottom: 2rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.tech-stack h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray);
}

.tech-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.meta-list {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.meta-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--dark-secondary);
    font-size: 0.95rem;
}

.meta-list li i {
    color: #10b981;
    /* Green-500 */
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-links,
    .nav-actions {
        /* display: none; */
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #f1f5f9;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-sidebar {
        position: static;
    }
}