/**
 * Global styles for the AUTOBOT ERP
 */

@import "tailwindcss";

@theme {
  --font-sans: "Inter", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --color-primary: #2563eb;
  --color-secondary: #475569;
  --color-accent: #f59e0b;
  --color-background: #f8fafc;
  --color-foreground: #1e293b;
}

:root {
    --primary: #2563eb;
    --secondary: #475569;
    --accent: #f59e0b;
    --background: #f8fafc;
    --foreground: #1e293b;
    --container-max-width: 1200px;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.cart-btn, .login-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.cart-btn {
    color: var(--foreground);
}

.login-btn {
    background-color: var(--primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
}

.login-btn:hover {
    background-color: #1d4ed8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.9375rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-link {
    color: var(--primary);
    padding: 0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/seed/autobot/1920/1080');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Sections */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Grids */
.services-grid, .products-grid, .gallery-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.service-card, .product-card, .blog-card {
    background-color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .product-card:hover, .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card img, .product-card img, .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info, .product-info, .blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3, .product-info h3, .blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.service-info p, .product-info p, .blog-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.features-list .icon {
    background-color: var(--primary);
    color: #fff;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.features-list h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.features-list p {
    color: #64748b;
    line-height: 1.6;
}

/* Page Headers */
.shop-header, .page-header {
    background-color: #f1f5f9;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.shop-header h1, .page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.shop-header p, .page-header p {
    color: #64748b;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Shop Layout */
.shop-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.filters {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: fit-content;
    border: 1px solid #f1f5f9;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.filter-section ul li {
    margin-bottom: 0.75rem;
}

.filter-section ul a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.filter-section ul a:hover, .filter-section ul a.active {
    color: var(--primary);
    font-weight: 600;
    padding-left: 0.5rem;
}

/* Product Area */
.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border: 1px solid #f1f5f9;
}

.search-box input {
    padding: 0.75rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    width: 350px;
    font-size: 0.9375rem;
}

.sort-box select {
    padding: 0.75rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background-color: #fff;
}

/* Cart Layout */
.cart-header {
    background-color: #f1f5f9;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    margin-bottom: 5rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 0;
}

.auth-card {
    background-color: #fff;
    padding: 3.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    border: 1px solid #f1f5f9;
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-card p {
    color: #64748b;
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #475569;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Contact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

.contact-info h2, .contact-form-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 3rem;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-details .icon {
    font-size: 1.75rem;
    background-color: #f1f5f9;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #64748b;
}

.contact-form-section {
    background-color: #fff;
    padding: 3.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
    font-size: 1rem;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Footer Styles */
.footer {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.75rem;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-contact p {
    display: flex;
    gap: 1rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Error Text */
.error-text {
    color: #ef4444;
    text-align: center;
    padding: 2rem;
    font-weight: 500;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 5rem;
    color: #64748b;
    font-style: italic;
    font-size: 1.125rem;
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
    .shop-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .hero { padding: 5rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .section-title { font-size: 2rem; }
    .shop-grid, .cart-grid, .contact-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-controls {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .search-box input { width: 100%; }
    .auth-card, .contact-form-section { padding: 2rem; }
}
