/* ==========================================================================
   LANDING PAGES — SEO Landing Page Styles
   ========================================================================== */

.landing-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.landing-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 32px;
    background: linear-gradient(transparent, rgba(15, 15, 35, 0.85) 40%, rgba(15, 15, 35, 0.95));
    color: #fff;
}

.landing-hero-overlay h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.landing-hero-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 600px;
}

.landing-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.landing-hero-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.landing-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
}

.landing-feature-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.landing-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.landing-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.landing-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-section {
    margin-bottom: 40px;
}

.landing-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.landing-section p,
.landing-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.landing-section ul,
.landing-section ol {
    padding-left: 20px;
    margin-top: 8px;
}

.landing-section li {
    margin-bottom: 6px;
}

.landing-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0;
}

.landing-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Accordion — scoped to .landing-section to override style.css globals */
.landing-section .faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-section .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.landing-section .faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font);
}

.landing-section .faq-question::before {
    display: none;
}

.landing-section .faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.landing-section .faq-item.open .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.landing-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.landing-section .faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.landing-section .faq-item.open .faq-answer {
    max-height: 500px;
}

/* Recommend Modal */
.rec-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rec-overlay.open {
    display: flex;
}

.rec-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.rec-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
}

.rec-close:hover {
    color: var(--text-primary);
}

.rec-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rec-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.rec-field {
    margin-bottom: 16px;
}

.rec-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.rec-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rec-opt {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font);
}

.rec-opt:hover {
    border-color: var(--accent-light);
}

.rec-opt.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.rec-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font);
    resize: vertical;
    min-height: 60px;
}

.rec-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.rec-submit {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    margin-top: 8px;
    transition: all var(--transition-fast);
}

.rec-submit:hover {
    background: var(--accent-light);
}

.rec-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rec-results {
    margin-top: 16px;
}

.rec-char-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-char-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.rec-char-card:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.rec-char-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rec-char-info {
    flex: 1;
    min-width: 0;
}

.rec-char-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.rec-char-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-char-go {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: 260px;
        border-radius: var(--radius-md);
    }

    .landing-hero-overlay h1 {
        font-size: 1.3rem;
    }

    .landing-hero-overlay {
        padding: 20px;
    }

    .landing-features {
        grid-template-columns: 1fr;
    }
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding: 40px 16px 24px;
}

.landing-footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.landing-footer-brand {
    margin-bottom: 28px;
}

.landing-footer-brand a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.landing-footer-brand p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.landing-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.landing-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.landing-footer-col a {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 3px 0;
    transition: color var(--transition-fast);
}

.landing-footer-col a:hover {
    color: var(--accent);
}

.landing-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
}

.landing-footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.landing-footer-bottom a {
    color: var(--text-tertiary);
    text-decoration: none;
}

.landing-footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .landing-footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   PG-* — Fortune Landing Page Shared Styles (theme-compatible)
   Override inline dark-mode colors for light theme compatibility
   ========================================================================== */

/* Hero Section */
.pg-hero {
    border-radius: var(--radius-xl) !important;
    padding: 48px 28px !important;
    text-align: center;
    margin-bottom: 32px;
}

.pg-hero p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form */
.pg-form {
    border-radius: var(--radius-xl) !important;
    padding: 36px 28px !important;
    max-width: 550px;
    margin: 0 auto 40px;
    text-align: center;
}

.pg-field label {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    margin-bottom: 6px;
    display: block;
}

.pg-field input,
.pg-field select,
.pg-wish-input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 13px 14px;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font);
}

.pg-field input:focus,
.pg-field select:focus,
.pg-wish-input:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-bg) !important;
}

.pg-field input::placeholder,
.pg-wish-input::placeholder {
    color: var(--text-tertiary);
}

.pg-gender label {
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    cursor: pointer;
}

.pg-gender input {
    accent-color: var(--accent);
}

.pg-person label {
    color: var(--text-secondary) !important;
}

.pg-person input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.pg-person input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-bg) !important;
}

/* Button */
.pg-btn {
    border: none;
    padding: 15px 48px;
    border-radius: var(--radius-lg) !important;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.3s;
    width: 100%;
    margin-top: 8px;
    color: #fff;
}

.pg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 77, 199, 0.25);
}

.pg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading */
.pg-loading {
    display: none;
    text-align: center;
    padding: 48px;
    color: var(--accent);
    font-size: 1.1rem;
}

.pg-loading.active {
    display: block;
}

/* Result Cards */
.pg-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pg-card::before {
    height: 3px;
}

.pg-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Override inline color on result card descriptions */
.pg-card div[style*="color:#b0b0b0"],
.pg-card div[style*="color:#d0d0d0"] {
    color: var(--text-secondary) !important;
}

/* Retry */
.pg-retry-btn {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--accent) !important;
    padding: 12px 32px;
    border-radius: var(--radius-md) !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.pg-retry-btn:hover {
    background: var(--accent-bg) !important;
    border-color: var(--accent) !important;
}

/* Zodiac Grid Items */
.pg-zodiac-item {
    border-radius: var(--radius-md) !important;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.85rem;
}

.pg-zodiac-item.safe {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
}

.pg-zodiac-item.danger {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #dc2626 !important;
}

/* Remedy */
.pg-remedy {
    background: var(--bg-input) !important;
    border-radius: var(--radius-md) !important;
}

.pg-remedy-text {
    color: var(--text-secondary) !important;
}

.pg-remedy-text strong {
    color: var(--text-primary) !important;
}

/* Compatibility Details */
.pg-compat-detail {
    background: var(--bg-input) !important;
    border-radius: var(--radius-md) !important;
}

.pg-compat-info .name {
    color: var(--text-primary) !important;
}

.pg-compat-info .desc {
    color: var(--text-secondary) !important;
}

/* Three Lives */
.pg-life {
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-lg) !important;
}

.pg-life-text {
    color: var(--text-secondary) !important;
}

/* Fortune Card (Koi) */
.pg-fortune-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 8px 32px rgba(91, 77, 199, 0.12);
}

.pg-fortune-card::before {
    display: none;
}

.pg-fortune-poem {
    color: var(--text-secondary) !important;
}

.pg-fortune-meaning {
    color: var(--text-primary) !important;
}

.pg-fortune-advice {
    background: var(--accent-bg) !important;
    border-left: 3px solid var(--accent) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
}

/* Koi Categories */
.pg-cat {
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s;
}

.pg-cat:hover,
.pg-cat.active {
    border-color: var(--accent) !important;
    background: var(--accent-bg) !important;
}

.pg-cat-name {
    color: var(--text-secondary) !important;
}

/* Stats Row */
.pg-stat {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.pg-stat-val {
    color: var(--accent) !important;
}

.pg-stat-label {
    color: var(--text-tertiary) !important;
}

/* ---- FAQ Section (OVERRIDES inline dark styles) ---- */
.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-section h2 {
    font-size: 1.2rem;
    color: var(--text-primary) !important;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.faq-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-q {
    padding: 14px 18px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.faq-q:hover {
    background: var(--accent-bg) !important;
}

.faq-q::after {
    content: '▼' !important;
    font-size: 0.65rem !important;
    color: var(--text-tertiary) !important;
    transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
    transform: rotate(180deg);
    color: var(--accent) !important;
}

.faq-a {
    padding: 0 18px !important;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    line-height: 1.7;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 800px;
    padding: 0 18px 14px !important;
}

/* Phone Fortune specific */
.pg-score-bar {
    background: var(--bg-input) !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}