/* =====================================================
   TakeChrg10 - Design System
   A calming, modern design for mental wellness
   ===================================================== */

:root {
    /* Primary Colors */
    --primary: #4ECDC4;
    --primary-dark: #44a08d;
    --primary-light: #a8e6cf;
    
    /* Secondary Colors */
    --secondary: #FF6B6B;
    --secondary-dark: #ee5a5a;
    --secondary-light: #ffa8a8;
    
    /* Neutral Colors */
    --dark: #1a1a2e;
    --gray-900: #16213e;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4ECDC4 0%, #44a08d 100%);
    --gradient-warm: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-calm: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --section-padding-sm: 3rem 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1rem;
    outline: none;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

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

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

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

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

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(78, 205, 196, 0.15);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
    background: var(--gray-100);
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: -2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.pricing-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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


.blog-card-image {
    height: 200px;
    background: var(--gradient-calm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Blog emoji icons using CSS */
.blog-emoji {
    font-size: 0;
    display: block;
    width: 80px;
    height: 80px;
}

.blog-emoji[class*="sunrise"]::before { content: ""; display: block; width: 80px; height: 80px; background: linear-gradient(180deg, #FFD93D 0%, #FF9F43 100%); border-radius: 50% 50% 0 0; }
.blog-emoji[class*="fire"]::before { content: ""; display: block; width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 80px solid #FF6B6B; border-radius: 50%; }
.blog-emoji[class*="heart"]::before { content: ""; display: block; width: 80px; height: 72px; background: #9B59B6; position: relative; transform: rotate(-45deg); border-radius: 50% 50% 0 50%; }
.blog-emoji[class*="chart"]::before { content: ""; display: block; width: 80px; height: 60px; background: linear-gradient(90deg, #11998e 25%, #38ef7d 25%, #38ef7d 50%, #11998e 50%, #11998e 75%, #38ef7d 75%); background-size: 100% 100%; }
.blog-emoji[class*="link"]::before { content: ""; display: block; width: 60px; height: 30px; border: 8px solid #764ba2; border-radius: 20px; margin: 25px 10px; }
.blog-emoji[class*="star"]::before { content: ""; display: block; width: 80px; height: 80px; background: #f7b733; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card h3 a {
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--primary-dark);
}

.blog-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-card .read-more {
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card .read-more:hover {
    gap: 0.75rem;
}

/* Blog Post Page */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray-400);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* About Page */
.about-hero {
    background: var(--gradient-calm);
    padding: 4rem 0;
    text-align: center;
}

.mission-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.mission-text h2 {
    margin-bottom: 1.5rem;
}

/* Testimonial */
.testimonial {
    background: var(--gray-100);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark);
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.text-muted { color: var(--gray-600); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }


/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copy {
    flex-basis: 100%;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}



.footer-copy p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .section {
        padding: var(--section-padding-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Form Styles (preserved from original) */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4M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zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}