/**
 * LSOET Theme - CSS Variables
 * Land Solutions of East Texas - Traditional Professional Branding
 *
 * This file defines the color palette and design tokens for the LSOET brand.
 * These variables are used throughout main-site.css to apply the theme.
 */

:root {
    /* ===================================
       PRIMARY BRAND COLORS - BLUE
       =================================== */
    --primary: #1e3c72;              /* LSOET Dark Blue */
    --primary-hover: #2a5298;        /* LSOET Medium Blue (lighter on hover) */
    --primary-light: #e3eaf5;        /* Light blue background */
    --primary-dark: #152a52;         /* Darker blue for emphasis */

    /* ===================================
       SECONDARY/ACCENT - RED
       =================================== */
    --secondary: #333333;            /* Dark gray for secondary elements */
    --accent: #C41E3A;               /* LSOET Red accent */
    --accent-hover: #a01829;         /* Darker red on hover */
    --accent-light: #f8e5e8;         /* Light red background */

    /* ===================================
       NEUTRALS - GRAYS
       =================================== */
    --background: #f8f9fa;           /* Light gray page background */
    --surface: #ffffff;              /* White surface for cards, modals */
    --text-primary: #333333;         /* Primary text color */
    --text-secondary: #666666;       /* Secondary text color */
    --text-muted: #999999;           /* Muted/placeholder text */
    --border: #dee2e6;               /* Border color */
    --border-light: #e9ecef;         /* Lighter border */

    /* ===================================
       STATUS COLORS
       =================================== */
    --success: #28a745;              /* Green for success states */
    --success-light: #d4edda;
    --warning: #ffc107;              /* Yellow/amber for warnings */
    --warning-light: #fff3cd;
    --error: #dc3545;                /* Red for errors */
    --error-light: #f8d7da;
    --info: #17a2b8;                 /* Teal for info */
    --info-light: #d1ecf1;

    /* ===================================
       SHADOWS (6 LEVELS)
       =================================== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);

    /* ===================================
       BORDER RADIUS SCALE
       =================================== */
    --radius-sm: 0.25rem;            /* 4px */
    --radius: 0.375rem;              /* 6px */
    --radius-md: 0.5rem;             /* 8px */
    --radius-lg: 0.75rem;            /* 12px */
    --radius-xl: 1rem;               /* 16px */
    --radius-full: 9999px;           /* Fully rounded */

    /* ===================================
       SPACING SCALE
       =================================== */
    --space-xs: 0.25rem;             /* 4px */
    --space-sm: 0.5rem;              /* 8px */
    --space-md: 1rem;                /* 16px */
    --space-lg: 1.5rem;              /* 24px */
    --space-xl: 2rem;                /* 32px */
    --space-2xl: 3rem;               /* 48px */

    /* ===================================
       TYPOGRAPHY
       =================================== */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;

    /* Font sizes */
    --text-xs: 0.75rem;              /* 12px */
    --text-sm: 0.875rem;             /* 14px */
    --text-base: 1rem;               /* 16px */
    --text-lg: 1.125rem;             /* 18px */
    --text-xl: 1.25rem;              /* 20px */
    --text-2xl: 1.5rem;              /* 24px */
    --text-3xl: 1.875rem;            /* 30px */
    --text-4xl: 2.25rem;             /* 36px */

    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ===================================
       TRANSITIONS & ANIMATIONS
       =================================== */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* ===================================
       LEGACY VARIABLE MAPPINGS
       For backward compatibility with existing CSS
       =================================== */
    --primary-blue: var(--primary);
    --secondary-blue: var(--primary-hover);
    --accent-red: var(--accent);
    --dark-gray: var(--text-primary);
    --text-gray: var(--text-secondary);
    --light-gray: #F5F5F5;
    --gray: var(--background);
    --white: var(--surface);
    --black: #000000;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Text Colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }

/* Background Colors */
.bg-primary { background-color: var(--primary); color: var(--surface); }
.bg-accent { background-color: var(--accent); color: var(--surface); }
.bg-surface { background-color: var(--surface); }
.bg-background { background-color: var(--background); }
.bg-success { background-color: var(--success-light); color: var(--success); }
.bg-warning { background-color: var(--warning-light); color: var(--warning); }
.bg-error { background-color: var(--error-light); color: var(--error); }
.bg-info { background-color: var(--info-light); color: var(--info); }

/* Border Colors */
.border-primary { border-color: var(--primary); }
.border-accent { border-color: var(--accent); }
.border-default { border-color: var(--border); }

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--surface);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-lg);
}

/* Card Component */
.card-themed {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: var(--space-lg);
    transition: var(--transition);
}

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

/* Input Styling */
.input-themed {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    transition: var(--transition);
}

.input-themed:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===================================
   ENHANCED COMPONENTS
   =================================== */

/* Hero Section with Professional Gradient */
.hero-professional {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 50%,
        var(--primary-hover) 100%
    );
    color: var(--surface);
    padding: 120px 0;
    overflow: hidden;
}

.hero-professional::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-professional .hero-title {
    font-size: 4rem;
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-professional .hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-professional .hero-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* Feature Cards with Hover Effects */
.feature-card-professional {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-professional:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.feature-card-professional .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.feature-card-professional .title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card-professional .description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Professional Table Styles */
.table-professional {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-professional thead {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--surface);
}

.table-professional th {
    padding: 1rem 1.5rem;
    font-weight: var(--font-semibold);
    text-align: left;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-professional td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.table-professional tbody tr:hover {
    background: var(--primary-light);
}

.table-professional tbody tr:last-child td {
    border-bottom: none;
}

/* Navigation Header */
.header-professional {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-professional .navbar-brand {
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
    color: var(--surface);
    letter-spacing: -0.02em;
}

.header-professional .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem;
}

.header-professional .nav-link:hover {
    color: var(--surface);
}

/* Footer */
.footer-professional {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
}

.footer-professional .footer-heading {
    color: var(--surface);
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.footer-professional .footer-link {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    padding: var(--space-xs) 0;
    transition: all var(--transition-fast);
}

.footer-professional .footer-link:hover {
    color: var(--surface);
    padding-left: var(--space-sm);
}

.footer-professional .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Alert/Message Boxes */
.alert-professional {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: var(--space-md);
}

.alert-professional.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #0c5460;
}

.alert-professional.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #155724;
}

.alert-professional.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #856404;
}

.alert-professional.alert-error {
    background: var(--error-light);
    border-color: var(--error);
    color: #721c24;
}

/* Badge Components */
.badge-professional {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-professional.badge-primary {
    background: var(--primary);
    color: var(--surface);
}

.badge-professional.badge-accent {
    background: var(--accent);
    color: var(--surface);
}

.badge-professional.badge-success {
    background: var(--success);
    color: var(--surface);
}

.badge-professional.badge-warning {
    background: var(--warning);
    color: #000;
}

/* Panel/Section Container */
.section-professional {
    padding: 80px 0;
}

.section-professional.section-alt {
    background: var(--primary-light);
}

.section-professional .section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-professional .section-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-professional .hero-title {
        font-size: 2.5rem;
    }

    .hero-professional .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-professional .hero-buttons {
        flex-direction: column;
    }

    .section-professional .section-title {
        font-size: var(--text-3xl);
    }

    .feature-card-professional {
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-professional .hero-title {
        font-size: 2rem;
    }

    .hero-professional .hero-subtitle {
        font-size: 1rem;
    }

    .section-professional {
        padding: 60px 0;
    }
}

/* Animation Classes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInProfessional {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade {
    animation: fadeInProfessional 0.8s ease-in;
}

/* Hover lift effect */
.lift-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-on-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
