/* /assets/css/actb-single.css */

:root {
    /* --- LIGHT MODE (Default) --- */
    --color-bg: #fbfbfd;
    --color-surface: #ffffff;
    --color-surface-2: #f5f5f7;
    --color-surface-hover: #e8e8ed;

    --color-border: #d2d2d7;
    --color-border-subtle: #e5e5ea;

    --color-heading: #1d1d1f;
    --color-text: #3a3a3c;
    --color-text-secondary: #86868b;
    --color-text-muted: #a1a1a6;

    --color-accent: #0073e6;
    --color-accent-hover: #005bb5;

    --color-green: #10b981;
    --color-green-soft: rgba(16, 185, 129, 0.1);

    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    /* --- DARK MODE --- */
    --color-bg: #000000;
    --color-surface: #151820;
    --color-surface-2: #1c2029;
    --color-surface-hover: #242833;

    --color-border: #2a2f3a;
    --color-border-subtle: #333;

    --color-heading: #f5f5f7;
    --color-text: #d8dae0;
    --color-text-secondary: #8b90a0;
    --color-text-muted: #5c6070;

    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;

    --color-green: #34d399;
    --color-green-soft: rgba(52, 211, 153, 0.12);

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- LAYOUT & UTILITIES --- */
.actb-tool-container {
    width: 100%;
}

#reader-toggle {
    display: none !important;
}

/* --- FORM ELEMENTS --- */
.ac-input,
.ac-select,
.ac-textarea,
.ac-input-small {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-surface, #151820);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-md, 12px);
    color: var(--color-text, #d8dae0);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus,
.ac-input-small:focus {
    outline: none;
    border-color: var(--color-accent, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ac-input-small {
    padding: 8px 12px;
    font-size: 0.9em;
}

.ac-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-heading, #fff);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actb-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px;
}

/* --- MAIN CONTENT CARD --- */
.actb-tool-page .entry-content>section {
    background: var(--color-surface, #151820);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-lg, 16px);
    padding: 30px 35px;
    margin-top: 35px;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Reset for internal containers */
.actb-tool-page .entry-content>.actb-tool-container {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
}

/* Typography */
.actb-tool-page .entry-content section h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.6em;
    color: var(--color-heading, #fff);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border, #2a2f3a);
    font-weight: 700;
}

.actb-tool-page .entry-content p {
    color: var(--color-text, #d8dae0);
    line-height: 1.7;
}

/* --- SPLIT LAYOUT (Benefits/HowTo) --- */
.actb-split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* Remove card styling from split sections to avoid double-boxing if nested */
.actb-tool-page .entry-content>.actb-split-content section {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

.actb-tool-page .entry-content>.actb-split-content h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
    border-bottom: none;
    color: var(--color-heading, #fff);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- BENEFITS GRID --- */
.actb-info-grid {
    display: grid;
    gap: 16px;
}

.actb-info-card {
    background: var(--color-surface-2, #1c2029);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: transform 0.2s ease, background 0.2s;
}

.actb-info-card:hover {
    transform: translateY(-2px);
    background: var(--color-surface-hover, #242833);
    border-color: var(--color-border-subtle, #333);
}

.actb-info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--color-green-soft, rgba(52, 211, 153, 0.12));
    color: var(--color-green, #34d399);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actb-info-content h3 {
    margin: 0 0 4px 0 !important;
    font-size: 1.1em !important;
    color: var(--color-heading, #fff) !important;
}

.actb-info-content p {
    margin: 0;
    font-size: 0.95em;
    color: var(--color-text-secondary, #8b90a0);
}

/* --- HOW TO STEPS --- */
.actb-step-list {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    position: relative;
}

.actb-step-list::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 20px;
    bottom: 40px;
    width: 2px;
    background: var(--color-border, #2a2f3a);
    z-index: 0;
}

.actb-step-item {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 30px;
}

.actb-step-marker {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--color-bg, #0c0e12);
    border: 2px solid var(--color-accent, #6366f1);
    color: var(--color-accent, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--color-bg, #0c0e12);
}

.actb-step-body h3 {
    margin: 0 0 6px 0 !important;
    font-size: 1.15em !important;
    color: var(--color-heading, #fff) !important;
}

/* --- FAQ (Accordion / Grid) --- */
.actb-faq-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.actb-faq-item {
    background: var(--color-surface-2, #1c2029);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-md, 12px);
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.actb-faq-item:hover {
    border-color: var(--color-accent, #6366f1);
    background: var(--color-surface-hover, #242833);
}

.actb-faq-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: var(--color-heading, #fff);
    font-weight: 600;
    border: none;
    padding: 0;
}

.actb-faq-item p {
    margin: 0;
    font-size: 0.95em;
    color: var(--color-text-secondary, #8b90a0);
}

/* --- SIDEBAR WIDGETS --- */
.actb-popular-widget,
.actb-support-widget {
    background: var(--color-surface, #151820);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.3));
    margin-bottom: 24px;
}

/* POPULAR TOOLS */
.actb-popular-widget h3 {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: var(--color-heading, #fff);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding: 0;
}

.actb-popular-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.actb-popular-widget li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text, #d8dae0);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
    padding: 4px 0;
}

.actb-popular-widget li a:hover {
    color: var(--color-heading, #fff);
    transform: translateX(4px);
}

.actb-tool-emoji {
    font-size: 1.2em;
    filter: grayscale(0.2);
    transition: filter 0.2s;
}

.actb-popular-widget li a:hover .actb-tool-emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}

.actb-view-all {
    display: block;
    margin-top: 24px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-accent, #6366f1);
    text-decoration: none;
    transition: color 0.2s;
}

.actb-view-all:hover {
    color: var(--color-accent-hover, #818cf8);
    text-decoration: underline;
}

/* SUPPORT WIDGET (Coffee) */
.actb-support-widget {
    text-align: center;
    padding: 30px 24px;
    position: relative;
    border-top: 4px solid #FFDD00;
    /* Yellow Start */
}

.actb-support-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.actb-support-widget h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: var(--color-heading, #fff);
    font-weight: 800;
}

.actb-support-widget p {
    margin: 0 0 24px 0;
    font-size: 0.9em;
    color: var(--color-text-secondary, #8b90a0);
    line-height: 1.5;
}

.actb-coffee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFDD00;
    color: #000 !important;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 1em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
}

.actb-coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 221, 0, 0.5);
    background: #FFEA00;
}

.actb-btn-icon {
    font-size: 1.2em;
}

/* --- ADS --- */
.actb-ad-slot {
    background: var(--color-surface-2, #1c2029);
    border: 1px solid var(--color-border, #2a2f3a);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    text-align: center;
    margin: 30px 0;
}

.actb-ad-label {
    display: block;
    font-size: 0.7em;
    color: var(--color-text-muted, #5c6070);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .actb-layout-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .actb-side-col {
        margin-top: 40px;
    }

    .actb-split-content {
        grid-template-columns: 1fr;
    }
}

/* --- SYNC BANNER --- */
.actb-sync-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

.actb-sync-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actb-sync-icon { font-size: 18px; }

.actb-sync-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.actb-sync-banner .actb-btn-sm {
    background: #0073e6;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 12px;
}

.actb-sync-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}

.actb-sync-close:hover { color: #fff; }

@media (max-width: 600px) {
    .actb-sync-banner {
        width: calc(100% - 32px);
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        border-radius: 16px;
    }
}