/*
 * Business Website Theme
 * CSS Custom Properties for easy reskinning
 */

:root {
    /* Primary brand colors */
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --brand-primary: var(--bs-primary);
    --brand-primary-hover: #0b5ed7;

    /* Secondary colors */
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    --brand-secondary: var(--bs-secondary);

    /* Accent colors */
    --brand-accent: #ffc107;
    --brand-accent-hover: #ffca2c;

    /* Text colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #f8f9fa;

    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #212529;

    /* Border colors */
    --border-color: #dee2e6;
    --border-radius: 0.375rem;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Typography */
    --font-family-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --font-size-base: 1rem;
    --line-height-base: 1.5;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Base styles */
body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Link styles */
a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-hover);
}

/* Button customization */
.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary-hover);
    --bs-btn-hover-border-color: var(--brand-primary-hover);
}

/* Card customization */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

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

/* Navbar customization */
.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 600;
    color: var(--brand-primary) !important;
}

/* Footer customization */
footer {
    border-top: 1px solid var(--border-color);
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Form styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Utility classes */
.text-brand {
    color: var(--brand-primary);
}

.bg-brand {
    background-color: var(--brand-primary);
}

.border-brand {
    border-color: var(--brand-primary);
}

/* =====================
   Landing Page Styles
   ===================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--text-primary);
}

/* CTA Button */
.btn-cta {
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Feature cards */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    border-radius: 50%;
}

/* Product cards */
.product-card {
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Testimonials */
.testimonial-avatar .avatar-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    color: var(--brand-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #6610f2 100%);
}

/* Fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.row > .fade-in-section:nth-child(1) { transition-delay: 0s; }
.row > .fade-in-section:nth-child(2) { transition-delay: 0.1s; }
.row > .fade-in-section:nth-child(3) { transition-delay: 0.2s; }
.row > .fade-in-section:nth-child(4) { transition-delay: 0.3s; }

/* =====================
   Product Pages Styles
   ===================== */

/* Page header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Product images */
.product-image {
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Product detail page */
.product-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.product-detail-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Pricing cards */
.pricing-card {
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    transform: scale(1.02);
}

.pricing-card-featured:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Price display */
.price-tag {
    line-height: 1;
}

.price-display {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Empty state */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Breadcrumb customization */
.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--brand-primary);
}
