/* 
NetYogi Static Pages CSS
Consistent design for About, Contact, Privacy, Terms, and 404 pages
Created: 2025-01-15

Features:
- Grid background pattern matching home page
- Gradient glow overlay
- Consistent typography and spacing
- Responsive design
*/

/* ============================================
   SHARED PAGE LAYOUT
   ============================================ */

.static-page {
    position: relative;
    min-height: calc(100dvh - 64px - 200px); /* Subtract navbar and approximate footer height */
    background: hsl(var(--background));
    overflow: hidden;
}

/* Grid background - content area only */
.static-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(hsl(var(--foreground) / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--foreground) / 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient glow overlay at top of content */
.static-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 50%;
    background: radial-gradient(
        ellipse 50% 80% at 50% 0%,
        hsl(var(--primary) / 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Main content wrapper */
.static-page-content {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

/* ============================================
   PAGE HERO SECTION
   ============================================ */

.page-hero {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    max-width: 680px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.page-hero-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ============================================
   CONTAINER AND SECTIONS
   ============================================ */

.static-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.static-container--narrow {
    max-width: 680px;
}

.static-container--wide {
    max-width: 1000px;
}

.static-section {
    margin-bottom: 3rem;
}

.static-section:last-child {
    margin-bottom: 0;
}

/* ============================================
   CONTENT CARDS
   ============================================ */

.content-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-card--highlight {
    background: linear-gradient(
        135deg,
        hsl(var(--primary) / 0.05) 0%,
        hsl(var(--card)) 100%
    );
    border-color: hsl(var(--primary) / 0.2);
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.content-card-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.content-card-text + .content-card-text {
    margin-top: 1rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.body-text + .body-text {
    margin-top: 1rem;
}

.small-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.last-updated {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   LISTS
   ============================================ */

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--primary));
}

.numbered-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    counter-reset: item;
}

.numbered-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    counter-increment: item;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   TL;DR BOX
   ============================================ */

.tldr-box {
    background: hsl(var(--primary) / 0.05);
    border: 1px solid hsl(var(--primary) / 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.tldr-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tldr-title svg {
    width: 18px;
    height: 18px;
}

.tldr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tldr-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    line-height: 1.5;
}

.tldr-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: 600;
}

.tldr-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */

/* Story Section */
.story-section {
    margin-bottom: 3rem;
}

.story-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
}

.story-text + .story-text {
    margin-top: 1.25rem;
}

/* Mission Section */
.mission-statement {
    font-size: 1.25rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.value-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.value-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    transform: translateY(-2px);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon svg {
    width: 22px;
    height: 22px;
    color: hsl(var(--primary));
}

.value-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.value-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* How It Works */
.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-it-works-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--card) / 0.5);
    border-radius: 10px;
}

.how-it-works-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-it-works-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.how-it-works-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */

.contact-intro {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Contact Form */
.contact-form-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    color: hsl(var(--foreground));
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground) / 0.6);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
    background: hsl(var(--primary) / 0.9);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit svg {
    width: 18px;
    height: 18px;
}

/* Alternative Contact Methods */
.contact-alternatives {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-alternatives-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.contact-method:hover {
    border-color: hsl(var(--primary) / 0.3);
    transform: translateY(-2px);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    color: hsl(var(--primary));
}

.contact-method-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.contact-method-content p {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.contact-method-content .contact-value {
    font-size: 0.875rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

/* Response Time Notice */
.response-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 10px;
    margin-top: 1rem;
}

.response-notice svg {
    width: 20px;
    height: 20px;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.response-notice p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Form Success/Error States */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-message--success {
    background: hsl(142 71% 45% / 0.1);
    border: 1px solid hsl(142 71% 45% / 0.2);
}

.form-message--success svg {
    color: hsl(142 71% 45%);
}

.form-message--error {
    background: hsl(0 84% 60% / 0.1);
    border: 1px solid hsl(0 84% 60% / 0.2);
}

.form-message--error svg {
    color: hsl(0 84% 60%);
}

.form-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-message-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.form-message-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */

.legal-content {
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.legal-section-title a {
    color: inherit;
    text-decoration: none;
}

.legal-subsection {
    margin-top: 1.25rem;
}

.legal-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.legal-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.legal-text + .legal-text {
    margin-top: 1rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: hsl(var(--primary));
}

.legal-contact {
    margin-top: 1rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 8px;
}

.legal-contact a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.legal-contact a:hover {
    text-decoration: underline;
}

/* Table of Contents */
.toc {
    background: hsl(var(--muted) / 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.toc-list a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: hsl(var(--primary));
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 200px);
    text-align: center;
    padding: 2rem 1.5rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.error-message {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.error-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.error-btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.error-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.error-btn-secondary:hover {
    background: hsl(var(--muted) / 0.8);
    border-color: hsl(var(--border) / 0.8);
}

.error-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Suggested Links on 404 */
.error-suggestions {
    margin-top: 3rem;
    text-align: center;
}

.error-suggestions-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.error-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.error-suggestions-list a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.error-suggestions-list a:hover {
    border-color: hsl(var(--primary) / 0.3);
    color: hsl(var(--primary));
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.page-cta {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary) / 0.05) 0%,
        hsl(var(--card)) 100%
    );
    border: 1px solid hsl(var(--primary) / 0.15);
    border-radius: 16px;
}

.page-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.page-cta-text {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.page-cta-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.page-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (min-width: 640px) {
    .page-hero {
        padding: 5rem 2rem 4rem;
    }
    
    .page-hero-title {
        font-size: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .error-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .error-code {
        font-size: 10rem;
    }
}

@media (min-width: 768px) {
    .static-page-content {
        padding-top: 5rem;
    }
    
    .static-container {
        padding: 0 2rem;
    }
    
    .legal-content {
        padding: 2.5rem;
    }
    
    .toc-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .page-hero-title {
        font-size: 3.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
    .static-page::before {
        background-image: 
            linear-gradient(hsl(var(--foreground) / 0.04) 1px, transparent 1px),
            linear-gradient(90deg, hsl(var(--foreground) / 0.04) 1px, transparent 1px);
    }
}

/* Manual dark mode class support */
.dark .static-page::before {
    background-image: 
        linear-gradient(hsl(var(--foreground) / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--foreground) / 0.04) 1px, transparent 1px);
}
