/*
Theme Name: AI Meeting Assistant Theme
Description: A professional, modern WordPress theme designed to match the AI Meeting Assistant plugin aesthetic. Features gradient backgrounds, smooth animations, and a sophisticated design system.
Version: 1.0.0
Author: AI Meeting Assistant
*/

/* AI Meeting Assistant Theme - Professional Modern Design */

/* CSS Custom Properties for Consistent Design System */
:root {
    /* Primary Color Palette */
    --ama-primary: #6366f1;
    --ama-primary-dark: #4f46e5;
    --ama-primary-light: #8b5cf6;
    --ama-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ama-accent: #06b6d4;
    --ama-accent-dark: #0891b2;
    
    /* Semantic Colors */
    --ama-success: #10b981;
    --ama-success-light: #34d399;
    --ama-warning: #f59e0b;
    --ama-warning-light: #fbbf24;
    --ama-danger: #ef4444;
    --ama-danger-light: #f87171;
    --ama-info: #3b82f6;
    --ama-info-light: #60a5fa;
    
    /* Neutral Colors */
    --ama-gray-50: #f9fafb;
    --ama-gray-100: #f3f4f6;
    --ama-gray-200: #e5e7eb;
    --ama-gray-300: #d1d5db;
    --ama-gray-400: #9ca3af;
    --ama-gray-500: #6b7280;
    --ama-gray-600: #4b5563;
    --ama-gray-700: #374151;
    --ama-gray-800: #1f2937;
    --ama-gray-900: #111827;
    
    /* Typography */
    --ama-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ama-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing Scale */
    --ama-space-1: 0.25rem;
    --ama-space-2: 0.5rem;
    --ama-space-3: 0.75rem;
    --ama-space-4: 1rem;
    --ama-space-5: 1.25rem;
    --ama-space-6: 1.5rem;
    --ama-space-8: 2rem;
    --ama-space-10: 2.5rem;
    --ama-space-12: 3rem;
    --ama-space-16: 4rem;
    --ama-space-20: 5rem;
    
    /* Border Radius */
    --ama-radius-sm: 0.375rem;
    --ama-radius: 0.5rem;
    --ama-radius-md: 0.75rem;
    --ama-radius-lg: 1rem;
    --ama-radius-xl: 1.5rem;
    --ama-radius-full: 9999px;
    
    /* Shadows */
    --ama-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ama-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ama-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ama-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ama-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --ama-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --ama-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ama-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ama-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Theme Variables */
    --ama-bg: #f1f5f9;
    --ama-card-bg: #ffffff;
    --ama-text: #1e293b;
    --ama-text-secondary: #64748b;
    --ama-border: #e2e8f0;
}

/* Dark Mode Variables */
.ama-dark-mode {
    --ama-bg: #0f172a;
    --ama-card-bg: #1e293b;
    --ama-text: #f1f5f9;
    --ama-text-secondary: #94a3b8;
    --ama-border: #334155;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ama-font-family);
    background: var(--ama-bg);
    color: var(--ama-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--ama-space-4);
    color: var(--ama-text);
}

h1 {
    font-size: 3rem;
    background: var(--ama-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--ama-space-4);
    color: var(--ama-text-secondary);
}

a {
    color: var(--ama-primary);
    text-decoration: none;
    transition: var(--ama-transition);
}

a:hover {
    color: var(--ama-primary-dark);
    text-decoration: underline;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ama-space-6);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--ama-space-6);
}

/* Header Styles */
.site-header {
    background: var(--ama-primary-gradient);
    color: white;
    padding: var(--ama-space-4) 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ama-shadow-lg);
}

.site-header::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: var(--ama-space-6);
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: var(--ama-space-2) var(--ama-space-4);
    border-radius: var(--ama-radius);
    transition: var(--ama-transition);
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a.current {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: var(--ama-primary-gradient);
    color: white;
    padding: var(--ama-space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--ama-space-6);
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--ama-space-8);
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ama-space-2);
    padding: var(--ama-space-4) var(--ama-space-8);
    border: none;
    border-radius: var(--ama-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ama-font-family);
    cursor: pointer;
    transition: var(--ama-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ama-shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ama-primary) 0%, var(--ama-primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--ama-shadow-xl), 0 0 30px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--ama-card-bg);
    color: var(--ama-text);
    border: 2px solid var(--ama-border);
}

.btn-secondary:hover {
    background: var(--ama-gray-50);
    border-color: var(--ama-primary);
    transform: translateY(-1px);
    box-shadow: var(--ama-shadow-lg);
    color: var(--ama-text);
    text-decoration: none;
}

.btn-white {
    background: white;
    color: var(--ama-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--ama-shadow-xl);
    color: var(--ama-primary);
    text-decoration: none;
}

/* Card Components */
.card {
    background: var(--ama-card-bg);
    border: 1px solid var(--ama-border);
    border-radius: var(--ama-radius-xl);
    padding: var(--ama-space-8);
    box-shadow: var(--ama-shadow-lg);
    transition: var(--ama-transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ama-primary-gradient);
    opacity: 0;
    transition: var(--ama-transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ama-shadow-2xl);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--ama-space-4);
    color: var(--ama-text);
}

.card-content {
    color: var(--ama-text-secondary);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--ama-space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Section Styles */
.section {
    padding: var(--ama-space-20) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--ama-space-16);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--ama-text-secondary);
    margin-bottom: var(--ama-space-16);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: var(--ama-space-8);
    background: var(--ama-card-bg);
    border-radius: var(--ama-radius-xl);
    box-shadow: var(--ama-shadow-lg);
    transition: var(--ama-transition);
    border: 1px solid var(--ama-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ama-shadow-2xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--ama-space-4);
    background: var(--ama-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--ama-space-3);
    color: var(--ama-text);
}

.feature-description {
    color: var(--ama-text-secondary);
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--ama-space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--ama-space-2);
    font-weight: 600;
    color: var(--ama-text);
}

.form-input {
    width: 100%;
    padding: var(--ama-space-4);
    border: 2px solid var(--ama-border);
    border-radius: var(--ama-radius-lg);
    font-size: 1rem;
    font-family: var(--ama-font-family);
    background: var(--ama-card-bg);
    color: var(--ama-text);
    transition: var(--ama-transition);
    box-shadow: var(--ama-shadow-sm);
}

.form-input:focus {
    outline: none;
    border-color: var(--ama-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), var(--ama-shadow-md);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--ama-text-secondary);
}

/* Auth Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ama-primary-gradient);
    position: relative;
    overflow: hidden;
}

.auth-container::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.auth-card {
    background: var(--ama-card-bg);
    padding: var(--ama-space-12);
    border-radius: var(--ama-radius-xl);
    box-shadow: var(--ama-shadow-2xl);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out;
}

.auth-title {
    text-align: center;
    margin-bottom: var(--ama-space-8);
    background: var(--ama-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    color: var(--ama-text-secondary);
    margin-bottom: var(--ama-space-8);
}

.auth-links {
    text-align: center;
    margin-top: var(--ama-space-6);
}

.auth-links a {
    color: var(--ama-primary);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--ama-gray-900);
    color: var(--ama-gray-300);
    padding: var(--ama-space-16) 0 var(--ama-space-8);
    margin-top: var(--ama-space-20);
}

.footer-content {
    text-align: center;
}

.footer-title {
    color: white;
    margin-bottom: var(--ama-space-4);
}

.footer-description {
    margin-bottom: var(--ama-space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--ama-space-6);
    margin-bottom: var(--ama-space-8);
}

.footer-links a {
    color: var(--ama-gray-300);
    transition: var(--ama-transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--ama-gray-700);
    padding-top: var(--ama-space-6);
    margin-top: var(--ama-space-8);
    text-align: center;
    color: var(--ama-gray-400);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--ama-space-1); }
.mb-2 { margin-bottom: var(--ama-space-2); }
.mb-3 { margin-bottom: var(--ama-space-3); }
.mb-4 { margin-bottom: var(--ama-space-4); }
.mb-6 { margin-bottom: var(--ama-space-6); }
.mb-8 { margin-bottom: var(--ama-space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--ama-space-1); }
.mt-2 { margin-top: var(--ama-space-2); }
.mt-3 { margin-top: var(--ama-space-3); }
.mt-4 { margin-top: var(--ama-space-4); }
.mt-6 { margin-top: var(--ama-space-6); }
.mt-8 { margin-top: var(--ama-space-8); }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--ama-space-4);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: var(--ama-space-2);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--ama-space-4);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        margin: var(--ama-space-4);
        padding: var(--ama-space-8);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--ama-space-3);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--ama-space-12) 0;
    }
    
    .card,
    .feature-card {
        padding: var(--ama-space-6);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --ama-border: #000000;
        --ama-text-secondary: #000000;
    }
    
    .ama-dark-mode {
        --ama-border: #ffffff;
        --ama-text-secondary: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
