/* Visual Thinking Landing Page - Main Stylesheet */

/* CSS Variables for theming (inspired by original design) */
:root {
    /* Primary Colors - Burnt Orange */
    --primary: #D97706;
    --primary-foreground: #ffffff;
    --primary-hover: #B45309;
    
    /* Secondary Colors - Vibrant Green */
    --secondary: #10B981;
    --secondary-foreground: #ffffff;
    
    /* Accent Colors - Bright Yellow */
    --accent: #FCD34D;
    --accent-foreground: #111827;
    
    /* Orange Star Colors */
    --orange: #F59E0B;
    --orange-foreground: #111827;
    
    /* Neutral Colors */
    --background: #ffffff;
    --foreground: #111827;
    --muted: #F3F4F6;
    --muted-foreground: #6B7280;
    --card: #ffffff;
    --card-foreground: #111827;
    --border: #E5E7EB;
    
    /* Semantic Colors */
    --destructive: #EF4444;
    --destructive-foreground: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: var(--muted-foreground);
}

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

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

.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #B45309 100%);
    color: var(--primary-foreground);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.75rem;
    }
    h2 {
        font-size: 3rem;
    }
}

p {
    margin-bottom: 1rem;
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

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

/* Button Component */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.btn-orange:hover {
    background-color: #D97706;
}

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

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Component */
.card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 2rem;
}

/* Form Elements */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-white {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.input-white::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form Container */
.form-container {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .form-container {
        margin: 0;
    }
}

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

/* Logo Carousel */
.logo-carousel {
    overflow: hidden;
    padding: 2rem 0;
}

.logo-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.logo-item {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
    color: var(--orange);
}

.star-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Testimonial Cards */
.testimonial-featured {
    background: rgba(217, 119, 6, 0.05);
    border-color: rgba(217, 119, 6, 0.2);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--secondary);
}

.toast-error {
    border-left: 4px solid var(--destructive);
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Utility: Hidden */
.hidden {
    display: none;
}

/* About Section - 3 Column Layout */
.about-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto 1rem;
}

@media (min-width: 768px) {
    .profile-image {
        margin: 0 0 1rem 0;
    }
}

/* Star System Cards */
.star-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.star-drawing {
    width: 100%;
    height: 128px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.star-letter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* CTA Grid */
.cta-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cta-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.cta-secondary {
    display: grid;
    gap: 1.5rem;
}

/* Icon Containers */
.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-container-primary {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--primary);
}

.icon-container-secondary {
    background-color: rgba(16, 185, 129, 0.5);
    color: var(--foreground);
}

/* Quote Styling */
blockquote {
    font-style: italic;
    line-height: 1.6;
}

.quote-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

/* Responsive text alignment */
@media (max-width: 1023px) {
    .lg-text-left {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .lg-text-left {
        text-align: left;
    }
}

/* Admin Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background-color: var(--muted);
    font-weight: 600;
}

.table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}
