/* Shared Page Styles */

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    position: relative;
    margin-bottom: 16px;
}

.page-header p {
    position: relative;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-sm {
    padding: 140px 0 60px;
}

/* Active nav link */
.nav-links a.active {
    color: var(--text);
}

/* ========================
   FEATURES PAGE
   ======================== */

.feature-detail {
    padding: 100px 0;
}

.feature-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-detail.alt .container {
    direction: rtl;
}

.feature-detail.alt .container > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-detail-content h2 {
    margin-bottom: 16px;
}

.feature-detail-content > p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Feature Visual Cards */
.feature-visual-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sync Animation */
.sync-animation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sync-youtube {
    width: 80px;
    height: 80px;
    background: #ff0000;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sync-youtube svg {
    width: 40px;
    height: 40px;
}

.sync-arrow {
    color: var(--primary);
    animation: pulse-arrow 1.5s ease-in-out infinite;
}

.sync-arrow svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-arrow {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(8px); opacity: 0.5; }
}

.sync-site {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sync-site svg {
    width: 36px;
    height: 36px;
}

/* Analytics Preview */
.analytics-preview {
    width: 100%;
}

.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.chart-bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 6px 6px 0 0;
    min-height: 20px;
    transition: height 0.3s ease;
}

.analytics-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.analytics-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

/* Customization Preview */
.customization-preview {
    width: 100%;
}

.color-swatches {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.swatch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch:hover {
    transform: scale(1.1);
}

.font-preview {
    text-align: center;
}

.font-sample {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.font-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.font-options span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Discovery Preview */
.discovery-preview {
    width: 100%;
}

.search-bar-mock {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.search-bar-mock svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
}

.search-bar-mock span {
    color: var(--text-dim);
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover,
.tag.active {
    background: var(--primary);
    color: white;
}

/* More Features Grid */
.more-features {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-compact {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card-compact:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-small svg {
    width: 20px;
    height: 20px;
    color: white;
}

.feature-card-compact h4 {
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card-compact p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================
   DOCUMENTATION PAGE
   ======================== */

.docs-section {
    padding: 60px 0 100px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-nav h4 {
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.docs-nav h4:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 4px;
}

.docs-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.docs-nav a:hover,
.docs-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.docs-content article {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.docs-content article:last-child {
    border-bottom: none;
}

.docs-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.docs-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.docs-content code {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.docs-content a {
    color: var(--primary);
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box strong {
    display: block;
    color: var(--text);
    margin-bottom: 12px;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box.info {
    border-left: 4px solid var(--primary);
}

/* ========================
   SUPPORT PAGE
   ======================== */

.support-options {
    padding: 60px 0 80px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}

.support-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.support-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.support-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03));
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-method svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-method strong {
    display: block;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-method span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.cf-turnstile {
    margin-bottom: 20px;
}

/* ========================
   LEGAL PAGES
   ======================== */

.legal-content {
    padding: 60px 0 100px;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-wrapper h2:first-child {
    margin-top: 0;
}

.legal-wrapper h3 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-wrapper p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-wrapper ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-wrapper li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-wrapper a {
    color: var(--primary);
}

/* ========================
   CHANGELOG PAGE
   ======================== */

.changelog-section {
    padding: 60px 0 100px;
}

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-entry {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.version-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.version-badge.major {
    background: var(--gradient);
    color: white;
}

.version-badge.minor {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.version-badge.patch {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.changelog-date {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.changelog-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.changelog-content h4 {
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.changelog-content h4:first-child {
    margin-top: 0;
}

.changelog-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.changelog-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.changelog-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 1024px) {
    .feature-detail .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-detail.alt .container {
        direction: ltr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .docs-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs-nav h4 {
        width: 100%;
        margin-top: 16px;
    }

    .docs-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs-nav li {
        margin-bottom: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-compact {
        grid-template-columns: 1fr;
    }

    .feature-visual-card {
        padding: 28px;
        min-height: 240px;
    }

    .sync-animation {
        flex-direction: column;
    }

    .sync-arrow {
        transform: rotate(90deg);
    }

    @keyframes pulse-arrow {
        0%, 100% { transform: rotate(90deg) translateX(0); opacity: 1; }
        50% { transform: rotate(90deg) translateX(8px); opacity: 0.5; }
    }
}
