/*
Theme Name: BizMarket
Theme URI: https://bizmarket.az
Author: BizMarket
Author URI: https://bizmarket.az
Description: Premium B2B Product Marketplace Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizmarket
*/

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fafafa;
    color: #1a1a2e;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #252542 50%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.hero-blur-1 {
    position: absolute;
    top: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(226, 135, 67, 0.2);
    border-radius: 50%;
    filter: blur(64px);
}

.hero-blur-2 {
    position: absolute;
    bottom: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(226, 135, 67, 0.1);
    border-radius: 50%;
    filter: blur(64px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5e7eb;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #e28743, #f5c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: #1a1a2e;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1a1a2e;
}

.nav-links li {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f9fafb;
    color: #e28743;
}

.dropdown-menu .category-icon {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e28743, #f5c55e);
    color: #1a1a2e;
    box-shadow: 0 0 40px rgba(226, 135, 67, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(226, 135, 67, 0.4);
}

.btn-outline {
    border: 2px solid rgba(250, 250, 250, 0.3);
    color: #fafafa;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(250, 250, 250, 0.1);
    border-color: rgba(250, 250, 250, 0.5);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.02);
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background: #0077b5;
    transform: scale(1.02);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(250, 250, 250, 0.1);
    border: 1px solid rgba(250, 250, 250, 0.2);
    color: rgba(250, 250, 250, 0.8);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #fafafa;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #e28743, #f5c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(250, 250, 250, 0.7);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(250, 250, 250, 0.05);
    border: 1px solid rgba(250, 250, 250, 0.1);
}

.feature-card span {
    color: #fafafa;
    font-size: 0.875rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #e28743;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    color: #e28743;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 42rem;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(226, 135, 67, 0.5);
    box-shadow: 0 12px 40px -8px rgba(26, 26, 46, 0.15);
}

.card-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e28743, #f5c55e);
    color: #1a1a2e;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: #e28743;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0.5rem 0 0.75rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e28743;
}

.card-min {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1a1a2e;
}

.modal-body {
    padding: 1.5rem;
}

.product-info {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e28743;
    box-shadow: 0 0 0 3px rgba(226, 135, 67, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #252542 50%, #1a1a2e 100%);
    color: #fafafa;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(250, 250, 250, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e28743;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e28743;
    color: #e28743;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2rem auto 0;
}

.load-more-btn:hover {
    background: #e28743;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 135, 67, 0.3);
}

.load-more-btn svg {
    transition: transform 0.3s;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.cards-grid .card.hidden {
    display: none;
}

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

/* Contact Form 7 Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #e28743;
    box-shadow: 0 0 0 3px rgba(226, 135, 67, 0.1);
}

.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    background: linear-gradient(135deg, #e28743, #f5c55e);
    color: #1a1a2e;
    box-shadow: 0 0 40px rgba(226, 135, 67, 0.3);
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(226, 135, 67, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr !important; }
}

/* Contact Section Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1.25rem;
}

.language-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.language-switcher .lang-btn:hover {
    color: #1a1a2e;
    background: #e5e7eb;
    border-color: #d1d5db;
}

.language-switcher .lang-btn.active {
    background: linear-gradient(135deg, #e28743, #f5c55e);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(226, 135, 67, 0.3);
}

/* Mobile Menu - Hidden by default on all screens */
.mobile-menu-btn,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .language-switcher,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger-line {
        display: block;
        width: 20px;
        height: 2px;
        background: #1a1a2e;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        z-index: 1000;
        border-top: 1px solid #e5e7eb;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-nav-links li:last-child {
        border-bottom: none;
    }

    .mobile-nav-links a {
        display: block;
        padding: 1rem 0.5rem;
        color: #1a1a2e;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
    }

    .mobile-nav-links a:hover {
        color: #e28743;
    }

    .mobile-language-switcher {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }

    .mobile-language-switcher .lang-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 50px;
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: #666;
        text-decoration: none;
        border-radius: 6px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
    }

    .mobile-language-switcher .lang-btn.active {
        background: linear-gradient(135deg, #e28743, #f5c55e);
        color: #1a1a2e;
        border-color: transparent;
    }
}
