/*
Theme Name: CounselorAI
Theme URI: https://counselorai.io
Description: Custom child theme for CounselorAI - AI Demand Writer
Author: CounselorAI
Template: twentytwentyfive
Version: 1.0.0
*/

body { background-color: #0A0A0A; color: #F5F0E8; }
::selection { background: #C9A84C; color: #0A0A0A; }

h1, h2, h3, h4, h5, h6,
.wp-block-heading, .wp-block-site-title, .has-heading-font-family {
    font-family: 'Sora', sans-serif !important;
    font-style: normal !important;
    color: #C9A84C;
}

body, p, a, li, td, th, span,
.wp-block-paragraph, .wp-block-list,
.wp-block-navigation-item, .wp-block-button__link,
.wp-element-button, .has-body-font-family {
    font-family: 'DM Sans', sans-serif !important;
    font-style: normal !important;
}

/* Nav */
.wp-block-navigation a { color: #F5F0E8 !important; transition: color 0.3s ease; }
.wp-block-navigation a:hover { color: #C9A84C !important; }

/* Schedule a Call — black on gold */
.wp-block-navigation-item--cta a {
    background: #C9A84C !important;
    color: #0A0A0A !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}
.wp-block-navigation-item--cta a:hover {
    background: #D4B96B !important;
    color: #0A0A0A !important;
}

/* Log In button — prominent */
.wp-block-navigation-item--login a {
    background: #0A0A0A !important;
    color: #C9A84C !important;
    border: 2px solid #C9A84C !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}
.wp-block-navigation-item--login a:hover {
    background: #C9A84C !important;
    color: #0A0A0A !important;
}

/* Buttons — black on gold */
.wp-block-button__link,
.wp-element-button {
    transition: all 0.3s ease;
    background: #C9A84C !important;
    color: #0A0A0A !important;
    font-weight: 700 !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
    background: #D4B96B !important;
}

/* Outline buttons */
.is-style-outline .wp-block-button__link {
    border: 2px solid #C9A84C !important;
    color: #C9A84C !important;
    background: transparent !important;
}
.is-style-outline .wp-block-button__link:hover {
    background: #C9A84C !important;
    color: #0A0A0A !important;
}

/* Links */
a { color: #C9A84C; }
a:hover { color: #D4B96B; }

blockquote, .wp-block-quote { border-left: 3px solid #C9A84C; font-style: italic; color: #D4B96B; }
html { scroll-behavior: smooth; }
@media (max-width: 768px) { h1 { font-size: 2.5rem !important; } h2 { font-size: 2rem !important; } }

/* Hide page title on homepage */
body.home .wp-block-post-title,
body.page-id-6 .wp-block-post-title,
body.home .entry-title { display: none !important; }

/* Card hover */
.has-dark-card-background-color {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.has-dark-card-background-color:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(201,168,76,0.1) !important;
    border-color: #C9A84C !important;
}

/* Hero text fix */
.wp-block-cover h1,
.wp-block-cover .wp-block-heading,
.wp-block-cover.is-light h1,
.wp-block-cover.is-dark h1 {
    color: #C9A84C !important;
}
.wp-block-cover p,
.wp-block-cover .wp-block-paragraph,
.wp-block-cover.is-light p,
.wp-block-cover.is-dark p {
    color: #F5F0E8 !important;
}
.wp-block-cover .has-accent-color {
    color: #C9A84C !important;
}

/* Animations */
.wp-block-cover, .wp-block-columns, .wp-block-group > .wp-block-heading,
.wp-block-group > .wp-block-paragraph, .wp-block-buttons, .wp-block-column {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.counselorai-visible { opacity: 1 !important; transform: translateY(0) !important; }
.wp-block-columns.counselorai-visible > .wp-block-column:nth-child(1) { transition-delay: 0s; }
.wp-block-columns.counselorai-visible > .wp-block-column:nth-child(2) { transition-delay: 0.15s; }
.wp-block-columns.counselorai-visible > .wp-block-column:nth-child(3) { transition-delay: 0.3s; }
.wp-block-columns.counselorai-visible > .wp-block-column:nth-child(4) { transition-delay: 0.45s; }
.wp-block-cover:first-child { opacity: 1; transform: translateY(0); animation: heroFadeIn 1.2s ease-out; }
@keyframes heroFadeIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* Hide comments */
.comments-area, .wp-block-comments, .wp-block-post-comments-form, #comments, #respond { display: none !important; }

/* Answer Block */
.counselorai-answer-block {
    background: #1E1E1E;
    border-left: 4px solid #C9A84C;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.counselorai-answer-block p { font-size: 1rem; color: #F5F0E8; line-height: 1.7; margin: 0; }
.counselorai-answer-block strong { color: #C9A84C; }

/* Comparison Table */
.counselorai-comparison-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.95rem; }
.counselorai-comparison-table thead tr { background: #C9A84C; }
.counselorai-comparison-table thead th { padding: 14px 18px; text-align: left; color: #1E1E1E; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.9rem; }
.counselorai-comparison-table tbody tr { border-bottom: 1px solid #2A2A2A; }
.counselorai-comparison-table tbody tr:nth-child(even) { background: #1A1A1A; }
.counselorai-comparison-table tbody td { padding: 12px 18px; color: #F5F0E8; vertical-align: top; line-height: 1.5; }
.counselorai-comparison-table tbody td:first-child { font-weight: 600; color: #C9A84C; white-space: nowrap; }
@media (max-width: 640px) { .counselorai-comparison-table { display: block; overflow-x: auto; } }

/* FAQ Section */
.counselorai-faq { margin-top: 60px; padding-top: 48px; border-top: 1px solid #2A2A2A; }
.counselorai-faq h2 { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 600; color: #C9A84C; margin-bottom: 32px; }
.counselorai-faq .faq-item { background: #1E1E1E; border: 1px solid #2A2A2A; border-radius: 8px; padding: 20px 24px; margin-bottom: 12px; }
.counselorai-faq .faq-item h3 { color: #C9A84C; font-size: 1.05rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.counselorai-faq .faq-item p { color: #F5F0E8; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Sources */
.counselorai-sources { background: #141414; border-left: 3px solid #C9A84C; border-radius: 8px; padding: 20px 24px; margin-top: 40px; margin-bottom: 8px; }
.counselorai-sources p { margin: 0 0 10px 0; color: #C9A84C; font-family: 'Sora', sans-serif; font-size: 0.95rem; }
.counselorai-sources ul { margin: 0; padding-left: 20px; }
.counselorai-sources li { color: #F5F0E8; font-size: 0.9rem; margin-bottom: 4px; }
.counselorai-sources a { color: #C9A84C; text-decoration: none; }
.counselorai-sources a:hover { color: #D4B96B; text-decoration: underline; }

/* Category Badge */
.counselorai-cat-badge { margin-bottom: 1rem; }
.counselorai-cat-badge a { background: #C9A84C; color: #0A0A0A; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }

/* Author Bio */
.counselorai-author-bio { display: flex; align-items: flex-start; gap: 24px; background: #1E1E1E; border: 1px solid #2A2A2A; border-radius: 12px; padding: 28px; margin-top: 48px; }
.counselorai-author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #C9A84C; }
.counselorai-author-info { display: flex; flex-direction: column; gap: 8px; }
.counselorai-author-name { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 600; color: #C9A84C; margin: 0; }
.counselorai-author-desc { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: #F5F0E8; line-height: 1.6; margin: 0; }
.counselorai-author-linkedin { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: #C9A84C; text-decoration: none; font-weight: 500; }
.counselorai-author-linkedin:hover { color: #D4B96B; }
@media (max-width: 600px) { .counselorai-author-bio { flex-direction: column; align-items: center; text-align: center; } }

/* Ensure bio and sources always visible */
.counselorai-author-bio,
.counselorai-sources,
.counselorai-answer-block,
.counselorai-faq,
.counselorai-comparison-table {
    opacity: 1 !important;
    transform: none !important;
}
