/* ═══════════════════════════════════════════
   AI Property Tools — Design System
   ═══════════════════════════════════════════ */

:root {
    --aipt-bg: #0c1324;
    --aipt-surface: #131d35;
    --aipt-card: #1a2540;
    --aipt-border: #243050;
    --aipt-gold: #d4a843;
    --aipt-gold-light: #f0d48a;
    --aipt-text: #e2e8f0;
    --aipt-text-muted: #94a3b8;
    --aipt-white: #f8fafc;
    --aipt-radius: 12px;
}

/* ─── HERO SECTION ─── */
.aipt-hero {
    background: linear-gradient(135deg, var(--aipt-bg) 0%, #101832 50%, var(--aipt-surface) 100%);
    padding: 60px 24px 50px;
    text-align: center;
    border-bottom: 1px solid var(--aipt-border);
    margin-bottom: 40px;
}
.aipt-hero-inner { max-width: 720px; margin: 0 auto; }
.aipt-hero-badge {
    display: inline-block;
    font-size: 13px;
    color: var(--aipt-gold);
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.aipt-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--aipt-white);
    line-height: 1.15;
    margin: 0 0 16px;
}
.aipt-hero-subtitle {
    font-size: 1.15rem;
    color: var(--aipt-text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.aipt-hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 36px; }
.aipt-btn-primary {
    background: var(--aipt-gold);
    color: #0c1324;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}
.aipt-btn-primary:hover { background: var(--aipt-gold-light); transform: translateY(-1px); }
.aipt-btn-secondary {
    background: transparent;
    color: var(--aipt-text);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--aipt-border);
    transition: all 0.2s;
}
.aipt-btn-secondary:hover { border-color: var(--aipt-gold); color: var(--aipt-gold); }
.aipt-hero-stats { display: flex; justify-content: center; gap: 48px; }
.aipt-stat { text-align: center; }
.aipt-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--aipt-gold); }
.aipt-stat-label { font-size: 0.8rem; color: var(--aipt-text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── ARTICLE CARD FIXES ─── */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    background: var(--aipt-card);
    border: 1px solid var(--aipt-border);
    border-radius: var(--aipt-radius);
    transition: transform 0.2s, border-color 0.2s;
}
.ast-separate-container .ast-article-post:hover {
    transform: translateY(-4px);
    border-color: var(--aipt-gold);
}

/* Fix oversized card titles */
.ast-separate-container .entry-title,
.blog .entry-title,
.archive .entry-title {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    font-weight: 700;
}
.ast-separate-container .entry-title a { color: var(--aipt-white); text-decoration: none; }
.ast-separate-container .entry-title a:hover { color: var(--aipt-gold); }
.entry-content p, .ast-excerpt-container p {
    font-size: 0.9rem;
    color: var(--aipt-text-muted);
    line-height: 1.6;
}
.cat-links a, .entry-meta .cat-links a {
    color: var(--aipt-gold) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ─── READING TIME ─── */
.aipt-reading-time {
    font-size: 0.85rem;
    color: var(--aipt-text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--aipt-border);
}

/* ─── AUTHOR BOX ─── */
.aipt-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--aipt-surface);
    border: 1px solid var(--aipt-border);
    border-radius: var(--aipt-radius);
    padding: 24px;
    margin: 40px 0;
}
.aipt-author-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--aipt-gold);
    flex-shrink: 0;
}
.aipt-author-label {
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--aipt-gold); margin-bottom: 4px;
}
.aipt-author-name { font-size: 1.1rem; font-weight: 700; color: var(--aipt-white); margin-bottom: 6px; }
.aipt-author-bio { font-size: 0.9rem; color: var(--aipt-text-muted); line-height: 1.5; margin: 0; }

/* ─── RELATED ARTICLES ─── */
.aipt-related { margin: 40px 0; padding-top: 32px; border-top: 1px solid var(--aipt-border); }
.aipt-related-title { font-size: 1.3rem; font-weight: 700; color: var(--aipt-white); margin-bottom: 20px; }
.aipt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aipt-related-card {
    background: var(--aipt-card);
    border: 1px solid var(--aipt-border);
    border-radius: var(--aipt-radius);
    overflow: hidden; text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}
.aipt-related-card:hover { transform: translateY(-3px); border-color: var(--aipt-gold); }
.aipt-related-card img { width: 100%; height: 120px; object-fit: cover; }
.aipt-related-card-title { padding: 12px; font-size: 0.85rem; font-weight: 600; color: var(--aipt-white); line-height: 1.4; }

/* ─── ENHANCED FOOTER ─── */
.aipt-footer {
    background: var(--aipt-surface);
    border-top: 1px solid var(--aipt-border);
    padding: 48px 24px 0;
}
.aipt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto 32px;
}
.aipt-footer-brand { font-size: 1.2rem; font-weight: 700; color: var(--aipt-white); margin-bottom: 12px; }
.aipt-footer-desc { color: var(--aipt-text-muted); font-size: 0.9rem; line-height: 1.6; }
.aipt-footer-col h4 {
    color: var(--aipt-white); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.aipt-footer-col ul { list-style: none; padding: 0; margin: 0; }
.aipt-footer-col ul li { margin-bottom: 10px; }
.aipt-footer-col ul a { color: var(--aipt-text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.aipt-footer-col ul a:hover { color: var(--aipt-gold); }
.aipt-footer-bottom { border-top: 1px solid var(--aipt-border); padding: 20px 0; text-align: center; }
.aipt-footer-bottom p { color: var(--aipt-text-muted); font-size: 0.8rem; margin: 0; }
.aipt-footer-bottom a { color: var(--aipt-text-muted); text-decoration: underline; }

/* ─── SINGLE ARTICLE ─── */
.single .entry-title { font-size: 2.2rem !important; line-height: 1.3 !important; }

/* ─── TABLE OF CONTENTS ─── */
.aipt-toc {
    background: var(--aipt-surface);
    border: 1px solid var(--aipt-border);
    border-left: 3px solid var(--aipt-gold);
    border-radius: var(--aipt-radius);
    padding: 20px 24px;
    margin: 24px 0;
}
.aipt-toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--aipt-white);
    margin-bottom: 12px;
}
.aipt-toc ul { list-style: none; padding: 0; margin: 0; }
.aipt-toc li { margin-bottom: 6px; }
.aipt-toc li a {
    color: var(--aipt-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.aipt-toc li a:hover { color: var(--aipt-gold); }
.aipt-toc li.aipt-toc-sub { padding-left: 16px; }
.aipt-toc li.aipt-toc-sub a { font-size: 0.8rem; }

/* ─── SOCIAL SHARING ─── */
.aipt-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px solid var(--aipt-border);
}
.aipt-share-label {
    font-size: 0.85rem;
    color: var(--aipt-text-muted);
    margin-right: 8px;
}
.aipt-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}
.aipt-share-x { background: #1a1a2e; color: #fff; }
.aipt-share-x:hover { background: #333; }
.aipt-share-li { background: #0077b5; color: #fff; }
.aipt-share-li:hover { background: #005a8e; }
.aipt-share-fb { background: #1877f2; color: #fff; }
.aipt-share-fb:hover { background: #1262c4; }
.aipt-share-em { background: var(--aipt-card); color: var(--aipt-gold); border: 1px solid var(--aipt-border); }
.aipt-share-em:hover { border-color: var(--aipt-gold); }

/* ─── SIDEBAR ─── */
.aipt-sidebar {
    margin-top: 32px;
}
.aipt-sidebar-widget {
    background: var(--aipt-surface);
    border: 1px solid var(--aipt-border);
    border-radius: var(--aipt-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.aipt-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--aipt-white);
    margin: 0 0 12px;
}
.aipt-sidebar-list { list-style: none; padding: 0; margin: 0; }
.aipt-sidebar-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--aipt-border); }
.aipt-sidebar-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.aipt-sidebar-list a { color: var(--aipt-text); text-decoration: none; font-size: 0.85rem; line-height: 1.4; transition: color 0.2s; }
.aipt-sidebar-list a:hover { color: var(--aipt-gold); }
.aipt-sidebar-text { color: var(--aipt-text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 12px; }
.aipt-sidebar-cta { margin-top: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .aipt-hero-title { font-size: 1.8rem; }
    .aipt-hero-stats { flex-wrap: wrap; gap: 24px; }
    .aipt-hero-cta { flex-direction: column; align-items: center; }
    .aipt-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .aipt-related-grid { grid-template-columns: 1fr; }
    .aipt-author-box { flex-direction: column; text-align: center; align-items: center; }
    .aipt-share { flex-wrap: wrap; }
    .aipt-toc { margin: 16px 0; }
}
