/* ListFlow Support Website Styles */

:root {
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --pro-gold: #FFD700;
    --pro-bg: #FFF9E6;
    --success: #34C759;
    --text: #1D1D1F;
    --text-light: #6E6E73;
    --bg: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --border: #D2D2D7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
.nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 22%;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Styles */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card .icon {
    font-size: 1.5rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.comparison-table th:nth-child(2) {
    text-align: center;
}

.comparison-table th:nth-child(3) {
    text-align: center;
    background: var(--pro-bg);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    text-align: center;
}

.comparison-table td:nth-child(3) {
    background: var(--pro-bg);
}

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

.check {
    color: var(--success);
    font-weight: bold;
}

.cross {
    color: var(--text-light);
}

/* Tier Cards */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tier-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    background: var(--bg);
}

.tier-card.pro {
    border-color: var(--pro-gold);
    background: var(--pro-bg);
}

.tier-card h3 {
    margin-bottom: 0.5rem;
}

.tier-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.tier-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.tier-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.tier-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tier-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Guide Steps */
.guide-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-header:hover {
    background: var(--border);
}

.accordion-content {
    padding: 1.5rem;
    display: none;
}

.accordion.open .accordion-content {
    display: block;
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--text-light);
}

.accordion.open .accordion-header::after {
    content: "−";
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.contact-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    margin-bottom: 0.5rem;
}

.contact-card a {
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

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

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

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pro {
    background: var(--pro-gold);
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .guide-step {
        flex-direction: column;
    }

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

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.lang-dropdown-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.lang-dropdown-btn .lang-flag {
    font-size: 1.1rem;
}

.lang-dropdown-btn .lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-dropdown-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.lang-dropdown-menu a:hover {
    background: var(--bg-secondary);
    text-decoration: none;
}

.lang-dropdown-menu a.active {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--primary);
}

.lang-dropdown-menu .lang-flag {
    font-size: 1.2rem;
}

.lang-dropdown-menu .lang-name {
    flex: 1;
}

.lang-dropdown-menu .lang-code {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Landing page nav language dropdown adjustments */
.nav-landing .lang-dropdown-btn {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-landing .lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #F5F5F7;
        --text-light: #A1A1A6;
        --bg: #1D1D1F;
        --bg-secondary: #2D2D2F;
        --border: #424245;
        --pro-bg: #3D3520;
    }
}
