/*
Theme Name: AthLooks
Theme URI: https://athlooks.com
Author: AthLooks Team
Author URI: https://athlooks.com
Description: Identify what athletes are wearing. Upload any photo and our AI instantly identifies brands, clothing items, and where to buy them.
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: athlooks
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Brand Colors */
    --al-primary: #6366f1;
    --al-primary-dark: #4f46e5;
    --al-primary-light: #a5b4fc;
    --al-secondary: #f97316;
    --al-secondary-dark: #ea580c;
    --al-accent: #10b981;
    
    /* Neutrals */
    --al-white: #ffffff;
    --al-gray-50: #f9fafb;
    --al-gray-100: #f3f4f6;
    --al-gray-200: #e5e7eb;
    --al-gray-300: #d1d5db;
    --al-gray-400: #9ca3af;
    --al-gray-500: #6b7280;
    --al-gray-600: #4b5563;
    --al-gray-700: #374151;
    --al-gray-800: #1f2937;
    --al-gray-900: #111827;
    --al-black: #030712;
    
    /* Gradients */
    --al-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f97316 100%);
    --al-gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    --al-gradient-card: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    
    /* Typography */
    --al-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --al-font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    /* Spacing */
    --al-container: 1200px;
    --al-radius: 12px;
    --al-radius-lg: 20px;
    --al-radius-xl: 28px;
    
    /* Shadows */
    --al-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --al-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --al-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --al-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --al-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--al-font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--al-gray-800);
    background: var(--al-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--al-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--al-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--al-gray-900);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.al-container {
    max-width: var(--al-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.al-section {
    padding: 5rem 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.al-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--al-gray-200);
    transition: all 0.3s ease;
}

.al-header.scrolled {
    box-shadow: var(--al-shadow);
}

.al-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.al-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--al-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--al-gray-900);
}

.al-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--al-gradient-primary);
    border-radius: var(--al-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
}

.al-logo span {
    background: var(--al-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.al-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.al-nav-links a {
    color: var(--al-gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.al-nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--al-primary);
    color: white !important;
    border-radius: var(--al-radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.al-nav-cta:hover {
    background: var(--al-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--al-shadow);
}

.al-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.al-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--al-gray-700);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.al-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--al-gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.al-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.al-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 0;
}

.al-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--al-primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.al-hero-badge::before {
    content: '✨';
}

.al-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.al-hero h1 span {
    background: var(--al-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.al-hero-subtitle {
    font-size: 1.25rem;
    color: var(--al-gray-300);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.al-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.al-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--al-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.al-btn-primary {
    background: var(--al-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.al-btn-primary:hover {
    background: var(--al-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    color: white;
}

.al-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.al-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   ANALYZER SECTION
   ============================================ */
.al-analyzer-section {
    background: var(--al-gray-50);
    padding: 6rem 0;
}

.al-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.al-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.al-section-header p {
    font-size: 1.125rem;
    color: var(--al-gray-500);
}

/* ============================================
   ANALYZER COMPONENT (Built-in)
   ============================================ */
.al-analyzer {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--al-radius-xl);
    box-shadow: var(--al-shadow-xl);
    overflow: hidden;
}

.al-analyzer-header {
    background: var(--al-gradient-primary);
    padding: 2rem;
    text-align: center;
}

.al-analyzer-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.al-analyzer-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.al-analyzer-body {
    padding: 2rem;
}

/* Dropzone */
.al-dropzone {
    border: 2px dashed var(--al-gray-300);
    border-radius: var(--al-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--al-gray-50);
}

.al-dropzone:hover,
.al-dropzone.dragover {
    border-color: var(--al-primary);
    background: rgba(99, 102, 241, 0.05);
}

.al-dropzone.dragover {
    transform: scale(1.02);
    box-shadow: var(--al-shadow-glow);
}

.al-dropzone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--al-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.al-dropzone-icon svg {
    width: 40px;
    height: 40px;
}

.al-dropzone h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--al-gray-800);
}

.al-dropzone p {
    color: var(--al-gray-500);
    margin-bottom: 1.5rem;
}

.al-dropzone-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--al-primary);
    color: white;
    border-radius: var(--al-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.al-dropzone-btn:hover {
    background: var(--al-primary-dark);
    transform: translateY(-2px);
}

.al-dropzone input[type="file"] {
    display: none;
}

.al-dropzone-formats {
    font-size: 0.75rem;
    color: var(--al-gray-400);
    margin-top: 1rem;
}

/* Preview */
.al-preview {
    display: none;
    text-align: center;
}

.al-preview-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.al-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--al-radius-lg);
    box-shadow: var(--al-shadow-lg);
}

.al-preview-remove {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--al-shadow);
    transition: all 0.2s ease;
}

.al-preview-remove:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.al-analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--al-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--al-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--al-shadow-lg);
}

.al-analyze-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--al-shadow-xl), var(--al-shadow-glow);
}

/* Loading */
.al-loading {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
}

.al-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--al-gray-200);
    border-top-color: var(--al-primary);
    border-radius: 50%;
    animation: al-spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes al-spin {
    to { transform: rotate(360deg); }
}

.al-loading h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.al-loading p {
    color: var(--al-gray-500);
}

/* Results */
.al-results {
    display: none;
}

.al-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--al-gray-200);
    margin-bottom: 1.5rem;
}

.al-results-header h4 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.al-results-header h4::before {
    content: '✅';
}

.al-new-analysis-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--al-gray-100);
    color: var(--al-gray-700);
    border: 1px solid var(--al-gray-200);
    border-radius: var(--al-radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.al-new-analysis-btn:hover {
    background: var(--al-primary);
    color: white;
    border-color: var(--al-primary);
}

.al-results-content {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.al-results-content h3 {
    font-size: 1.1rem;
    color: var(--al-primary);
    margin: 1.25rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--al-gray-200);
}

.al-results-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.al-results-content strong {
    color: var(--al-gray-800);
}

.al-results-content ul {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.25rem;
}

.al-results-content li {
    margin: 0.15rem 0;
    line-height: 1.4;
}

.al-results-content p {
    margin: 0.35rem 0;
}

.al-results-content a {
    color: var(--al-primary);
    font-weight: 500;
}

.al-results-content hr {
    border: none;
    border-top: 1px solid var(--al-gray-200);
    margin: 0.75rem 0;
}

/* Analysis content wrapper - compact styling */
.al-analysis-content {
    font-size: 0.9rem;
}

.al-analysis-content h3 {
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
    padding-top: 0.75rem;
}

.al-analysis-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Error */
.al-error {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border-radius: var(--al-radius);
    border: 1px solid #fecaca;
}

.al-error-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ef4444;
}

.al-error p {
    color: #b91c1c;
    font-weight: 500;
    margin-bottom: 1rem;
}

.al-retry-btn {
    padding: 0.625rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--al-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.al-retry-btn:hover {
    background: #dc2626;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.al-how-it-works {
    padding: 6rem 0;
}

.al-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.al-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--al-radius-lg);
    box-shadow: var(--al-shadow);
    transition: all 0.3s ease;
}

.al-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--al-shadow-xl);
}

.al-step-number {
    width: 60px;
    height: 60px;
    background: var(--al-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--al-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.al-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.al-step p {
    color: var(--al-gray-500);
    font-size: 0.9375rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.al-features {
    background: var(--al-gray-900);
    padding: 6rem 0;
    color: white;
}

.al-features .al-section-header h2 {
    color: white;
}

.al-features .al-section-header p {
    color: var(--al-gray-400);
}

.al-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.al-feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--al-radius-lg);
    transition: all 0.3s ease;
}

.al-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.al-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--al-gradient-primary);
    border-radius: var(--al-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.al-feature h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.al-feature p {
    color: var(--al-gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   ATHLETE BRANDS SECTION
   ============================================ */
.al-brands {
    padding: 5rem 0;
    background: var(--al-gray-50);
}

.al-brands-title {
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--al-gray-500);
    margin-bottom: 2rem;
}

.al-brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
}

.al-brands-logos span {
    font-family: var(--al-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--al-gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
.al-footer {
    background: var(--al-gray-900);
    color: var(--al-gray-400);
    padding: 4rem 0 2rem;
}

.al-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.al-footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.al-footer-column h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

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

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

.al-footer-links a {
    color: var(--al-gray-400);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.al-footer-links a:hover {
    color: white;
}

.al-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--al-gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

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

.al-social-links a {
    width: 36px;
    height: 36px;
    background: var(--al-gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--al-gray-400);
    transition: all 0.2s ease;
}

.al-social-links a:hover {
    background: var(--al-primary);
    color: white;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .al-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .al-nav-links {
        display: none;
    }
    
    .al-mobile-toggle {
        display: block;
    }
    
    .al-hero h1 {
        font-size: 2.25rem;
    }
    
    .al-hero-subtitle {
        font-size: 1rem;
    }
    
    .al-section {
        padding: 4rem 0;
    }
    
    .al-section-header h2 {
        font-size: 2rem;
    }
    
    .al-dropzone {
        padding: 3rem 1.5rem;
    }
    
    .al-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .al-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .al-container {
        padding: 0 1rem;
    }
    
    .al-header-inner {
        height: 64px;
    }
    
    .al-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .al-analyzer-body {
        padding: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes al-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.al-animate-in {
    animation: al-fadeInUp 0.6s ease-out forwards;
}

/* Pulse animation for loading */
@keyframes al-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.al-loading p {
    animation: al-pulse 2s ease-in-out infinite;
}
