/* ============================================
   SEO Section Styles — CoinP Exchange
   Theme: Dark (#0d0d1a) + Accent (#4873ff)
   ============================================ */

/* Container */
.seo-section {
    background: #000;
    color: #c8cdd5;
    padding: 60px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    font-size: 15px;
    margin-top: 450px;
}
.seo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.seo-box {
    background: #12122a;
    border: 1px solid rgba(72,115,255,0.12);
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
    .seo-box { padding: 28px 18px; }
    .seo-section { padding: 32px 0 0; }
}

/* Typography */
.seo-section h1,
.seo-section h2,
.seo-section h3,
.seo-section h4,
.seo-section h5,
.seo-section h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0;
}
.seo-section h1 {  margin-bottom: 18px; }
.seo-section h2 {  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #4873ff; display: inline-block; }
.seo-section h3 {  margin-bottom: 12px; color: #e0e4ea; }
.seo-section h4 {  margin-bottom: 10px; color: #b0b8c8; }
.seo-section h5 {  margin-bottom: 8px; color: #98a2b3; }
.seo-section h6 {  margin-bottom: 6px; color: #8590a2; }

.seo-section p {
    margin-bottom: 18px;
    color: #b3bac6;
}
.seo-section a {
    color: #4873ff;
    text-decoration: none;
    transition: color 0.2s;
}
.seo-section a:hover {
    color: #6d93ff;
    text-decoration: underline;
}
.seo-highlight {
    color: #4873ff;
    font-weight: 600;
}

/* Table of Contents */
.seo-toc {
    background: #181838;
    border: 1px solid rgba(72,115,255,0.18);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 36px;
}
.seo-toc-title {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}
.seo-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}
@media (max-width: 600px) {
    .seo-toc ol { columns: 1; }
}
.seo-toc li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
    break-inside: avoid;
}
.seo-toc li::before {
    content: counter(toc-counter) ". ";
    color: #4873ff;
    font-weight: 600;
}
.seo-toc a {
    color: #a8b2c1;
    font-size: 14px;
}
.seo-toc a:hover {
    color: #4873ff;
}

/* Intro Image */
.seo-img-wrap {
    margin: 28px 0;
    text-align: center;
}
.seo-img-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(72,115,255,0.1);
}
.seo-img-caption {
    font-size: 13px;
    color: #6b7588;
    margin-top: 8px;
}

/* Features Grid */
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.seo-feature-card {
    background: #181838;
    border: 1px solid rgba(72,115,255,0.1);
    border-radius: 10px;
    padding: 22px 20px;
    transition: border-color 0.25s, transform 0.2s;
}
.seo-feature-card:hover {
    border-color: #4873ff;
    transform: translateY(-2px);
}
.seo-feature-num {
    display: inline-block;
    background: #4873ff;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
}
.seo-feature-card .seo-feature-title {
    display: inline;
    vertical-align: middle;
    color: #e0e4ea;
    margin: 0;
    font-weight: 700;
}
.seo-feature-card p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #8e96a6;
}

/* Sub-titles (converted from sub-headings for SEO ratio) */
.seo-sub-title {
    color: #c8cdd5;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Footer section title */
.seo-footer-title {
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}

/* Collapsed grid - show more/less */
.seo-features-grid.collapsed .seo-feature-card:nth-child(n+13) {
    display: none;
}
.seo-reviews-grid.collapsed .seo-review-card:nth-child(n+10) {
    display: none;
}

/* WhatsApp & Email share */
.seo-share-whatsapp { background: #25d366; }
.seo-share-email { background: #6b7588; }

/* Show More Button */
.seo-show-more-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 32px;
    background: transparent;
    color: #4873ff;
    border: 1px solid #4873ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.seo-show-more-btn:hover {
    background: #4873ff;
    color: #fff;
}

/* FAQ Accordion */
.seo-faq-list {
    margin-top: 20px;
}
.seo-faq-item {
    background: #181838;
    border: 1px solid rgba(72,115,255,0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.seo-faq-question {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #e0e4ea;
    font-size: 15px;
    transition: background 0.2s;
    user-select: none;
}
.seo-faq-question:hover {
    background: rgba(72,115,255,0.06);
}
.seo-faq-arrow {
    transition: transform 0.3s;
    color: #4873ff;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 12px;
}
.seo-faq-item.active .seo-faq-arrow {
    transform: rotate(180deg);
}
.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
    color: #8e96a6;
    font-size: 14px;
    line-height: 1.7;
}
.seo-faq-item.active .seo-faq-answer {
    max-height: 600px;
    padding: 0 22px 18px;
}

/* Reviews */
.seo-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.seo-review-card {
    background: #181838;
    border: 1px solid rgba(72,115,255,0.1);
    border-radius: 10px;
    padding: 22px;
}
.seo-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.seo-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4873ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.seo-review-name {
    font-weight: 600;
    color: #e0e4ea;
    font-size: 14px;
}
.seo-review-date {
    font-size: 12px;
    color: #6b7588;
}
.seo-review-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.seo-review-text {
    color: #8e96a6;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Social Share */
.seo-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.seo-share-label {
    color: #8e96a6;
    font-size: 14px;
    font-weight: 600;
}
.seo-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.seo-share-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
}
.seo-share-twitter { background: #1da1f2; }
.seo-share-facebook { background: #1877f2; }
.seo-share-linkedin { background: #0a66c2; }
.seo-share-telegram { background: #0088cc; }
.seo-share-reddit { background: #ff4500; }

/* External Links */
.seo-ext-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}
.seo-ext-link {
    padding: 8px 18px;
    border: 1px solid rgba(72,115,255,0.2);
    border-radius: 8px;
    font-size: 13px;
    color: #a8b2c1;
    transition: border-color 0.2s, color 0.2s;
}
.seo-ext-link:hover {
    border-color: #4873ff;
    color: #4873ff;
    text-decoration: none;
}

/* SEO Footer */
.seo-footer {
    background: #0a0a1e;
    border-top: 1px solid rgba(72,115,255,0.12);
    padding: 40px 0 24px;
    margin-top: 48px;
}
.seo-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 28px;
}
.seo-footer h5 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
}
.seo-footer p,
.seo-footer a {
    font-size: 13px;
    color: #6b7588;
    line-height: 1.8;
}
.seo-footer a:hover {
    color: #4873ff;
}
.seo-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(72,115,255,0.08);
    font-size: 13px;
    color: #4a5168;
}

/* Internal Links Cluster */
.seo-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}
.seo-internal-link {
    padding: 6px 14px;
    background: rgba(72,115,255,0.08);
    border-radius: 6px;
    font-size: 13px;
}

/* Divider */
.seo-divider {
    border: none;
    border-top: 1px solid rgba(72,115,255,0.1);
    margin: 36px 0;
}

/* Scroll margin for anchors */
.seo-section [id] {
    scroll-margin-top: 80px;
}

/* Show more / less */
.seo-show-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #4873ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}
.seo-show-more-btn:hover {
    background: #3a62e0;
}
