/**
 * AISEO Theme Styles
 *
 * @package AISEO
 */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --aiseo-primary: #2563eb;
    --aiseo-secondary: #64748b;
    --aiseo-accent: #f59e0b;
    --aiseo-bg: #ffffff;
    --aiseo-text: #1e293b;
    --aiseo-border: #e2e8f0;
    --aiseo-radius: 8px;
    --aiseo-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--aiseo-text);
    line-height: 1.6;
}

a {
    color: var(--aiseo-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--aiseo-bg);
    border-bottom: 1px solid var(--aiseo-border);
    padding: 1rem 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aiseo-text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--aiseo-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--aiseo-text);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Products Grid
   -------------------------------------------------------------------------- */
.aiseo-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.aiseo-product-card {
    background: var(--aiseo-bg);
    border: 1px solid var(--aiseo-border);
    border-radius: var(--aiseo-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.aiseo-product-card:hover {
    box-shadow: var(--aiseo-shadow);
}

.aiseo-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.aiseo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aiseo-product-info {
    padding: 1rem;
}

.aiseo-product-title {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.aiseo-product-title a {
    color: var(--aiseo-text);
}

.aiseo-product-price {
    color: var(--aiseo-primary);
    font-weight: 600;
}

.price-regular {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 0.5rem;
}

.price-moq {
    display: block;
    font-size: 0.75rem;
    color: var(--aiseo-secondary);
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.aiseo-faq-accordion {
    margin: 2rem 0;
}

.aiseo-faq-item {
    border-bottom: 1px solid var(--aiseo-border);
    padding: 1rem 0;
}

.aiseo-faq-question {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aiseo-faq-question::-webkit-details-marker {
    display: none;
}

.aiseo-faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--aiseo-secondary);
}

.aiseo-faq-item[open] .aiseo-faq-question::after {
    content: '-';
}

.aiseo-faq-answer {
    margin-top: 0.75rem;
    color: var(--aiseo-secondary);
    line-height: 1.7;
}

/* FAQ Themes */
.aiseo-faq-theme-borders .aiseo-faq-item {
    border: 1px solid var(--aiseo-border);
    border-radius: var(--aiseo-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.aiseo-faq-theme-minimal .aiseo-faq-item {
    border: none;
}

/* --------------------------------------------------------------------------
   Testimonial Carousel
   -------------------------------------------------------------------------- */
.aiseo-testimonial-carousel {
    overflow: hidden;
    margin: 2rem 0;
}

.aiseo-testimonial-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.aiseo-testimonial-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.aiseo-testimonial-content {
    background: var(--aiseo-bg);
    border: 1px solid var(--aiseo-border);
    border-radius: var(--aiseo-radius);
    padding: 1.5rem;
    height: 100%;
}

.aiseo-testimonial-rating {
    margin-bottom: 0.75rem;
}

.aiseo-testimonial-rating .star {
    color: var(--aiseo-border);
    font-size: 1.125rem;
}

.aiseo-testimonial-rating .star.filled {
    color: var(--aiseo-accent);
}

.aiseo-testimonial-quote {
    font-style: italic;
    margin: 0 0 1rem;
    color: var(--aiseo-text);
    line-height: 1.7;
}

.aiseo-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aiseo-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.aiseo-testimonial-name {
    font-weight: 600;
    font-style: normal;
    display: block;
}

.aiseo-testimonial-company {
    font-size: 0.875rem;
    color: var(--aiseo-secondary);
}

/* --------------------------------------------------------------------------
   Lead Form
   -------------------------------------------------------------------------- */
.aiseo-lead-form .form-group {
    margin-bottom: 1rem;
}

.aiseo-lead-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.aiseo-lead-form input,
.aiseo-lead-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--aiseo-border);
    border-radius: var(--aiseo-radius);
    font-size: 1rem;
}

.aiseo-lead-form input:focus,
.aiseo-lead-form textarea:focus {
    outline: none;
    border-color: var(--aiseo-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aiseo-lead-form button {
    background: var(--aiseo-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--aiseo-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aiseo-lead-form button:hover {
    background: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Language Switcher
   -------------------------------------------------------------------------- */
.aiseo-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.aiseo-language-switcher .lang-btn {
    color: var(--aiseo-secondary);
    font-weight: 500;
}

.aiseo-language-switcher .lang-btn.active {
    color: var(--aiseo-primary);
}

.aiseo-language-switcher .lang-sep {
    color: var(--aiseo-border);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .aiseo-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
