/* ==========================================================
   SEO PAGES — QUOTES INDEX, CATEGORY, DETAIL
   ========================================================== */

/* ── HERO SECTION ── */
.seo-hero {
    text-align: center;
    padding: 48px 0 40px;
    animation: fadeInUp 0.8s var(--spring) both;
}

.seo-hero-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 12px 24px rgba(200, 135, 90, 0.2));
    animation: floatCat 6s ease-in-out infinite;
}

.seo-hero-title {
    font-family: var(--font-d);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.seo-hero-desc {
    font-size: 1rem;
    color: var(--text-500);
    word-break: keep-all;
    line-height: 1.6;
}

/* ── CATEGORY GRID (INDEX) ── */
.seo-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s var(--spring) 0.1s both;
}

.seo-category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--t);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--s-xs);
}

.seo-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s-lg);
    border-color: var(--accent-border);
}

.seo-category-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.seo-category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-900);
    margin: 0;
}

.seo-category-count {
    font-size: 0.82rem;
    color: var(--text-300);
}

/* ── BREADCRUMB ── */
.seo-breadcrumb {
    width: 100%;
    max-width: 640px;
    margin: 32px auto 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-300);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--spring) both;
}

.seo-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── CATEGORY HEADER ── */
.seo-category-header {
    text-align: center;
    padding: 32px 0 24px;
    animation: fadeInUp 0.7s var(--spring) both;
}

.seo-category-header-icon {
    font-size: 3rem;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.seo-category-header h1 {
    font-family: var(--font-d);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 6px;
}

.seo-category-header-count {
    font-size: 0.88rem;
    color: var(--text-300);
}

/* ── QUOTE LIST ── */
.seo-quote-list {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s var(--spring) 0.1s both;
}

.seo-quote-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--t);
    box-shadow: var(--s-xs);
}

.seo-quote-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--s-md);
    border-color: var(--accent-border);
}

.seo-quote-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.seo-quote-image-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-2);
}

.seo-quote-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-quote-content {
    flex: 1;
    min-width: 0;
}

.seo-quote-text {
    font-family: var(--font-d);
    font-size: 0.95rem;
    color: var(--text-900);
    line-height: 1.6;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.seo-quote-author {
    font-size: 0.82rem;
    color: var(--text-300);
    font-style: normal;
}

/* ── PAGINATION ── */
.seo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px auto;
    flex-wrap: wrap;
}

.seo-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-700);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--t-fast);
}

.seo-page-link:hover {
    border-color: var(--accent-border);
    background: var(--bg-2);
}

.seo-page-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent-dark);
}

/* ── DETAIL PAGE ── */
.seo-detail {
    max-width: 640px;
    width: 100%;
    margin: 24px auto 0;
    animation: fadeInUp 0.8s var(--spring) both;
}

.seo-detail-image-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--s-md);
    margin-bottom: 28px;
    background: var(--bg-2);
}

.seo-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.seo-detail-quote {
    text-align: center;
    padding: 0 8px;
}

.seo-detail-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.seo-detail-text {
    font-family: var(--font-d);
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-900);
    margin: 0 0 16px;
    word-break: keep-all;
}

.seo-detail-author {
    font-size: 1rem;
    color: var(--text-500);
    font-style: normal;
    font-weight: 500;
}

.seo-detail-actions {
    text-align: center;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.seo-back-link {
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
}

.seo-back-link:hover {
    text-decoration: underline;
}

/* ── ABOUT SECTION ── */
.seo-about {
    max-width: 640px;
    width: 100%;
    margin: 0 auto 48px;
    text-align: center;
    padding: 36px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--s-xs);
    animation: fadeInUp 0.8s var(--spring) 0.2s both;
}

.seo-about h2 {
    font-family: var(--font-d);
    font-size: 1.3rem;
    color: var(--text-900);
    margin-bottom: 14px;
}

.seo-about p {
    font-size: 0.92rem;
    color: var(--text-500);
    line-height: 1.7;
    margin-bottom: 8px;
    word-break: keep-all;
}

/* ── CTA BUTTON ── */
.seo-cta {
    text-align: center;
    margin-top: 24px;
}

.seo-cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--t);
    box-shadow: 0 4px 18px rgba(200, 135, 90, 0.35);
}

.seo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 135, 90, 0.45);
    background: var(--accent-dark);
}

/* ── EMPTY STATE ── */
.seo-empty {
    text-align: center;
    color: var(--text-300);
    font-size: 1rem;
    padding: 48px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .seo-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .seo-hero-title { font-size: 1.4rem; }
    .seo-category-header h1 { font-size: 1.3rem; }

    .seo-quote-link {
        gap: 12px;
        padding: 12px;
    }

    .seo-quote-image-wrap {
        width: 64px;
        height: 64px;
    }

    .seo-quote-text { font-size: 0.88rem; }

    .seo-detail-text { font-size: 1.1rem; }
}
