/* ========================================
   Page-Specific Styles
   ======================================== */

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 100%);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Page Content */
.page-content {
    padding: 60px 0 100px;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.tab-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

/* Inline link */
.inline-link {
    color: #00d4ff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #00ffff;
    text-decoration: underline;
}

.tab-logo {
    width: 52px;
    height: 52px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
}

.tab-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

/* Tutorial Section */
.tutorial-section {
    display: none;
}

.tutorial-section.active {
    display: block;
}

.tutorial-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.tutorial-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Step Card */
.step-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 30px;
    background: var(--surface-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.step-body {
    padding: 30px;
}

.step-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.step-list {
    margin: 20px 0;
}

.step-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

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

.step-image {
    margin: 20px 0;
}

.image-placeholder {
    background: var(--background);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tutorial-img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.step-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.tip-icon {
    font-size: 1.2rem;
}

.step-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* Code Box */
.code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--background);
    border-radius: 8px;
    margin-top: 20px;
}

.code-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.code-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 4px;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* Tips Section */
.tips-section {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 60px;
}

.tips-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #ff3b30;
}

.tips-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.tips-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

/* Download Page */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.download-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.download-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.download-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.download-version {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Deposit Page */
.deposit-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.deposit-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.deposit-icon {
    font-size: 2.5rem;
}

.deposit-name {
    font-size: 1.25rem;
    margin: 0;
}

.deposit-steps {
    margin: 0;
}

.deposit-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-step:last-child {
    border-bottom: none;
}

.deposit-step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.deposit-step-content {
    flex: 1;
}

.deposit-step-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.deposit-step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Invite Page */
.invite-hero {
    text-align: center;
    padding: 60px 0;
}

.invite-rate {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.invite-rate span {
    font-size: 2rem;
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.work-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
}

.work-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.work-num {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    margin: 0 auto 20px;
}

.invite-link-box {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.invite-link {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 20px auto 0;
}

.invite-link input {
    flex: 1;
    padding: 16px 20px;
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Compare Page */
.compare-platforms {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
    max-width: 900px;
}

.compare-platform {
    text-align: center;
    position: relative;
}

.compare-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 20px;
}

.compare-badge {
    position: absolute;
    top: 0;
    right: 10px;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin: 0 auto 60px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1100px;
}

.compare-table-full {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.compare-th-label,
.compare-td-label {
    background: var(--surface-light);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-th {
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--surface);
    min-width: 180px;
}

.compare-td-label {
    font-weight: 600;
}

.compare-table-full td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-td-highlight {
    background: rgba(240, 185, 11, 0.1);
    font-weight: 600;
    color: var(--primary);
}

.compare-table-full tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Compare Pros Cons Cards */
.compare-pros-cons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto 60px;
    max-width: 1100px;
}

.compare-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-card-header {
    padding: 30px;
    text-align: center;
    background: var(--surface-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.compare-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
}

.compare-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.compare-pros,
.compare-cons {
    padding: 20px 25px;
}

.compare-pros h4,
.compare-cons h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.compare-pros ul,
.compare-cons ul {
    margin: 0;
    padding-left: 20px;
}

.compare-pros li,
.compare-cons li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compare-card-footer {
    padding: 20px 25px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-card-footer .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* Recommendation Section */
.compare-recommendation {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.compare-recommendation h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recommendation-card {
    background: var(--surface-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.rec-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.recommendation-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.recommendation-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Review Page Fix - Center Content */
.review-card {
    max-width: 900px;
    margin: 0 auto 40px;
}

.review-section {
    text-align: left;
}

.review-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* FAQ Page */
.faq-categories {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-category {
    padding: 10px 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-category:hover,
.faq-category.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .compare-platforms {
        gap: 40px;
    }

    .compare-pros-cons {
        grid-template-columns: 1fr;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .compare-table-wrapper {
        font-size: 0.9rem;
    }

    .compare-th-label,
    .compare-td-label {
        width: 140px;
    }

    .compare-th {
        min-width: 140px;
        padding: 12px;
    }
}

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

    .compare-platforms {
        gap: 30px;
    }

    .compare-logo {
        width: 80px;
        height: 80px;
    }

    .compare-recommendation {
        padding: 30px 20px;
    }

    .compare-card-footer {
        flex-direction: column;
    }
}
