/**
 * TransL8 Pages CSS
 * Scoped styles for all page templates
 * Theme: Purple + Dark Background
 * Last Updated: October 30, 2025
 */

/* ============================================
   GLOBAL PAGE STYLES
   ============================================ */

.transl8-page-landing,
.transl8-page-about,
.transl8-page-pricing,
.transl8-page-contact,
.transl8-page-legal,
.transl8-page-community {
    /* Color Variables */
    --primary-color: #7c3aed;        /* Purple */
    --primary-dark: #6d28d9;         /* Darker Purple */
    --primary-light: #a78bfa;        /* Lighter Purple */
    --bg-dark: #0f0f0f;              /* Very Dark Background */
    --bg-card: #1a1a1a;              /* Card Background */
    --text-primary: #f0f0f0;         /* Light Text */
    --text-secondary: #a0a0a0;       /* Gray Text */
    --border-color: #2a2a2a;         /* Border Color */
    --success-color: #10b981;        /* Green */
    --danger-color: #ef4444;         /* Red */
    
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* ============================================
   PAGE HEADER SECTION
   ============================================ */

.page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 40px 0;
    color: var(--text-primary);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-graphic,
.placeholder-graphic {
    background: linear-gradient(135deg, var(--bg-card), rgba(124, 58, 237, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    font-size: 4rem;
    color: var(--primary-light);
}

/* ============================================
   GRIDS
   ============================================ */

.features-grid,
.stats-grid,
.pricing-grid,
.tech-grid,
.guidelines-grid,
.social-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card,
.stat,
.pricing-card,
.tech-card,
.guideline-card,
.social-card,
.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover,
.tech-card:hover,
.social-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3,
.tech-card h3,
.guideline-card h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px 0;
    color: var(--text-primary);
}

.feature-card p,
.tech-card p,
.guideline-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    margin: 0;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0 20px 0;
}

.plan-price {
    margin: 20px 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.features-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.features-list li.denied {
    opacity: 0.5;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--success-color);
    margin-top: 10px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1200px;
}

.comparison-table thead {
    background-color: rgba(124, 58, 237, 0.15);
    border-bottom: 2px solid var(--primary-color);
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-light);
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STEPS CONTAINER
   ============================================ */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.step {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
}

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

.mission-section,
.story-section,
.team-section,
.availability-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 20px;
}

.story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.story-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
}

.story-box h3 {
    color: var(--primary-light);
    margin-top: 0;
}

.story-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-box li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.member-role {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin: 5px 0;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-container,
.contact-info-container {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-box h3 {
    margin-top: 0;
    color: var(--primary-light);
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-box a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.faq-answer p {
    margin: 0 0 10px 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin: 5px 0;
}

/* ============================================
   LEGAL PAGE SPECIFIC
   ============================================ */

.toc-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.table-of-contents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-light);
    padding-left: 10px;
}

.legal-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: rgba(124, 58, 237, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.legal-section h3 {
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section h4 {
    color: var(--text-primary);
    margin-top: 15px;
    margin-bottom: 10px;
}

.legal-section ul,
.legal-section ol {
    color: var(--text-secondary);
    padding-left: 20px;
}

.legal-section li {
    margin: 10px 0;
    line-height: 1.7;
}

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

.legal-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.legal-contact {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
}

.contact-box {
    background-color: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

/* ============================================
   COMMUNITY PAGE SPECIFIC
   ============================================ */

.community-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .community-hero {
        grid-template-columns: 1fr;
    }
}

.community-content h2 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

.community-note {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.featured-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.featured-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.featured-language {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px 0;
}

.social-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

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

.hero-section .hero-buttons,
.pricing-cta,
.cta-section,
.community-cta,
.final-cta {
    text-align: center;
    padding: 40px 20px;
}

.trial-banner {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    margin: -20px auto 40px;
    color: var(--primary-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin: 40px 0 25px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-grid,
    .stats-grid,
    .pricing-grid,
    .tech-grid,
    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 40px 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.pricing-card,
.step,
.team-member {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
