/* Danabak Content Pro - Frontend Styles v2.0 (Performance Optimized) */

/* Critical CSS - Above the fold */
.dcp-toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin:20px 0}
.dcp-toc h3{margin:0 0 15px;font-size:16px;color:#1e293b}
.dcp-toc-title{margin:0 0 15px;font-size:16px;color:#1e293b}
.dcp-toc ul{margin:0;padding:0 0 0 20px;list-style:none}
.dcp-toc li{margin:8px 0}
.dcp-toc a{color:#2563eb;text-decoration:none;font-size:15px}
.dcp-toc a:hover{text-decoration:underline}

/* Author Box - E-E-A-T */
.dcp-author-box{display:flex;gap:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:24px;margin:30px 0}
.dcp-author-photo{flex-shrink:0}
.dcp-author-photo img{width:80px;height:80px;border-radius:50%;object-fit:cover}
.dcp-author-info{flex:1}
.dcp-author-name{margin:0 0 4px;font-size:18px;font-weight:600;color:#1e293b}
.dcp-author-credentials{display:block;font-size:14px;color:#64748b;margin-bottom:8px}
.dcp-author-bio{margin:0 0 12px;font-size:15px;color:#475569;line-height:1.6}
.dcp-author-social{display:flex;gap:12px}
.dcp-author-social a{color:#64748b;transition:color .2s}
.dcp-author-social a:hover{color:#2563eb}

/* Social Ticker - Multiple Positions */
.dcp-social-ticker{display:flex;align-items:center;gap:15px;padding:12px 20px;background:#1e293b;border-radius:8px}
.dcp-social-label{color:#94a3b8;font-size:13px;font-weight:500;white-space:nowrap}
.dcp-social-links{display:flex;gap:12px;flex-wrap:wrap}
.dcp-social-link{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:rgba(255,255,255,.1);border-radius:50%;color:#fff;transition:background .2s,transform .2s}
.dcp-social-link:hover{background:rgba(255,255,255,.2);transform:scale(1.1)}
.dcp-social-link svg{width:18px;height:18px}

/* Floating Sidebar Position */
.dcp-social-floating{position:fixed;left:20px;top:50%;transform:translateY(-50%);flex-direction:column;border-radius:25px;padding:15px 12px;z-index:1000;box-shadow:0 4px 20px rgba(0,0,0,.15)}
.dcp-social-floating .dcp-social-label{writing-mode:vertical-rl;transform:rotate(180deg);margin-bottom:10px}
.dcp-social-floating .dcp-social-links{flex-direction:column}

/* Sticky Bottom Position */
.dcp-social-bottom{position:fixed;bottom:0;left:0;right:0;border-radius:0;z-index:1000;justify-content:center;box-shadow:0 -4px 20px rgba(0,0,0,.1)}

/* Inline Positions */
.dcp-social-top,.dcp-social-end,.dcp-social-inline{margin:20px 0}

/* Related Posts */
.dcp-related-posts{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin:25px 0}
.dcp-related-title{margin:0 0 15px;font-size:16px;color:#1e293b}
.dcp-related-list{margin:0;padding:0;list-style:none}
.dcp-related-list li{padding:10px 0;border-bottom:1px solid #e2e8f0}
.dcp-related-list li:last-child{border:none;padding-bottom:0}
.dcp-related-list a{color:#2563eb;text-decoration:none;font-size:15px;display:block}
.dcp-related-list a:hover{text-decoration:underline}

/* CTA Banners - Multiple Styles - FIXED SPACING */
.dcp-cta-banner{margin:30px 0}
.dcp-cta-content{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);border-radius:12px;padding:25px 30px;text-align:center}
.dcp-cta-text{color:#fff;font-size:18px;font-weight:600;margin:0}
.dcp-cta-buttons{display:flex;align-items:center;gap:15px;flex-wrap:wrap;justify-content:center}
.dcp-cta-button{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#2563eb;padding:12px 28px;border-radius:8px;font-weight:600;font-size:15px;text-decoration:none;transition:transform .2s,box-shadow .2s}
.dcp-cta-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.2);color:#1d4ed8}
.dcp-cta-phone{color:#bfdbfe;font-size:15px;text-decoration:none;padding:10px 15px;border:1px solid rgba(255,255,255,0.3);border-radius:6px;transition:background .2s,color .2s}
.dcp-cta-phone:hover{background:rgba(255,255,255,0.1);color:#fff}

/* Floating CTA Button */
.dcp-cta-floating .dcp-cta-content{position:fixed;bottom:25px;right:25px;padding:0;background:none;z-index:1000}
.dcp-cta-floating .dcp-cta-button{box-shadow:0 4px 20px rgba(37,99,235,.4);padding:15px 25px}
.dcp-cta-floating .dcp-cta-text,.dcp-cta-floating .dcp-cta-phone{display:none}

/* Inline CTA */
.dcp-cta-inline .dcp-cta-content{border-radius:8px;padding:20px}
.dcp-cta-inline .dcp-cta-text{font-size:16px}

/* Slide-in CTA */
.dcp-cta-slide_in .dcp-cta-content{position:fixed;bottom:25px;right:-400px;width:350px;flex-direction:column;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.2);z-index:1000;animation:dcp-slide-in .5s ease-out forwards;animation-delay:3s}
@keyframes dcp-slide-in{to{right:25px}}

/* Video Section */
.dcp-video-section{margin:30px 0;padding:25px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.dcp-video-section h2{margin:0 0 20px;font-size:18px;color:#1e293b}
.dcp-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.dcp-video-embed{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:8px;background:#000}
.dcp-video-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* FAQ Section */
.dcp-faq{margin:30px 0}
.dcp-faq h2{color:#1e293b;margin-bottom:20px}
.faq-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin-bottom:15px}
.faq-item h3{margin:0 0 10px;font-size:16px;color:#1e293b}
.faq-item p{margin:0;color:#475569;line-height:1.7}

/* Case Studies */
.dcp-case-studies{background:#fefce8;border:1px solid #fef08a;border-radius:8px;padding:25px;margin:25px 0}
.dcp-case-studies h2{color:#854d0e;margin-top:0}
.dcp-custom-section{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:25px;margin:25px 0}
.dcp-custom-section h2{color:#0369a1;margin-top:0}
.dcp-custom-image{margin:15px 0}
.dcp-custom-image img{border-radius:8px;max-width:100%;height:auto}

/* Conclusion */
.dcp-conclusion{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:25px;margin:25px 0}
.dcp-conclusion h2{color:#166534;margin-top:0}

/* Code blocks for schema examples */
.dcp-code-block{background:#1e293b;border-radius:8px;padding:20px;margin:20px 0;overflow-x:auto}
.dcp-code-block h4{color:#94a3b8;margin:0 0 10px;font-size:14px}
.dcp-code-block pre{margin:0;color:#e2e8f0;font-family:'Fira Code',monospace;font-size:13px;line-height:1.5}
.dcp-code-block code{color:#e2e8f0}

/* Action Items - Orange/Amber */
.dcp-action-items,
.entry-content .dcp-action-items {
    background: #fef3c7 !important;
    border: 1px solid #fcd34d !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
}
.dcp-action-items h4,
.entry-content .dcp-action-items h4 {
    color: #92400e !important;
    margin: 0 0 15px !important;
    font-weight: 700 !important;
}
.dcp-action-items ol,
.entry-content .dcp-action-items ol {
    margin: 0 !important;
    padding: 0 0 0 22px !important;
}
.dcp-action-items li,
.entry-content .dcp-action-items li {
    margin: 8px 0 !important;
    color: #78350f !important;
    font-size: 15px !important;
}

/* CTA Section (in content) */
.dcp-cta-section{text-align:center;padding:30px;background:linear-gradient(135deg,#2563eb 0%,#7c3aed 100%);border-radius:12px;margin:25px 0}
.dcp-cta-section p{color:#fff;font-size:18px;margin:0 0 15px}
.dcp-cta-section .dcp-cta-button{background:#fff;color:#2563eb;margin-right:15px}
.dcp-cta-section .dcp-cta-phone{color:#e0e7ff;border:1px solid rgba(255,255,255,0.3);padding:12px 20px;border-radius:8px;margin-left:10px}

/* Feedback Widget - FIXED */
.dcp-feedback-widget{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:25px;margin:30px 0;text-align:center}
.dcp-feedback-question{margin:0 0 20px;font-size:16px;color:#475569;font-weight:500}
.dcp-feedback-buttons{display:flex;justify-content:center;gap:15px}
.dcp-feedback-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 30px;border:2px solid #e2e8f0;background:#fff;border-radius:25px;cursor:pointer;font-size:15px;font-weight:600;transition:all .2s;color:#475569}
.dcp-feedback-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1)}
.dcp-feedback-btn.dcp-feedback-yes:hover{border-color:#10b981;background:#ecfdf5;color:#059669}
.dcp-feedback-btn.dcp-feedback-no:hover{border-color:#ef4444;background:#fef2f2;color:#dc2626}
.dcp-feedback-btn:disabled{opacity:0.6;cursor:not-allowed;transform:none}
.dcp-feedback-icon{font-size:20px}
.dcp-feedback-thanks{color:#10b981;font-weight:600;margin:0;font-size:16px}

/* TL;DR Answer Box - Blue */
.dcp-tldr,
.entry-content .dcp-tldr,
.post-content .dcp-tldr,
article .dcp-tldr {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 20px 24px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-tldr p:first-child,
.entry-content .dcp-tldr p:first-child {
    margin-top: 0 !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}
.dcp-tldr ul,
.entry-content .dcp-tldr ul {
    margin: 15px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.dcp-tldr li,
.entry-content .dcp-tldr li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important;
    color: #1e3a8a !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}
.dcp-tldr li:last-child,
.entry-content .dcp-tldr li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.dcp-tldr li strong,
.entry-content .dcp-tldr li strong {
    color: #1e40af !important;
    font-weight: 600 !important;
}

/* Callout Box - Yellow (Key Insights) */
.dcp-callout,
.entry-content .dcp-callout,
.post-content .dcp-callout,
article .dcp-callout {
    background: #fefce8 !important;
    border: 1px solid #fde047 !important;
    border-left: 4px solid #eab308 !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-callout p,
.entry-content .dcp-callout p {
    margin: 0 !important;
    color: #713f12 !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
}
.dcp-callout strong,
.entry-content .dcp-callout strong {
    color: #854d0e !important;
    font-weight: 700 !important;
}

/* Checklist Box - Green */
.dcp-checklist,
.entry-content .dcp-checklist,
.post-content .dcp-checklist,
article .dcp-checklist {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    border-left: 4px solid #22c55e !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-checklist p:first-child,
.entry-content .dcp-checklist p:first-child {
    margin: 0 0 14px !important;
    color: #166534 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
.dcp-checklist ul,
.entry-content .dcp-checklist ul {
    margin: 0 !important;
    padding: 0 0 0 8px !important;
    list-style: none !important;
}
.dcp-checklist li,
.entry-content .dcp-checklist li {
    padding: 8px 0 !important;
    color: #166534 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    position: relative !important;
}

/* Warning Box - Red/Pink */
.dcp-warning,
.entry-content .dcp-warning,
.post-content .dcp-warning,
article .dcp-warning {
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-warning p,
.entry-content .dcp-warning p {
    margin: 0 !important;
    color: #991b1b !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
}
.dcp-warning strong,
.entry-content .dcp-warning strong {
    color: #7f1d1d !important;
    font-weight: 700 !important;
}

/* Pro Tip Box - Blue/Cyan */
.dcp-tip,
.entry-content .dcp-tip,
.post-content .dcp-tip,
article .dcp-tip {
    background: #f0f9ff !important;
    border: 1px solid #7dd3fc !important;
    border-left: 4px solid #0ea5e9 !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-tip p,
.entry-content .dcp-tip p {
    margin: 0 !important;
    color: #0c4a6e !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
}
.dcp-tip strong,
.entry-content .dcp-tip strong {
    color: #075985 !important;
    font-weight: 700 !important;
}

/* Step-by-Step Box - Purple */
.dcp-steps,
.entry-content .dcp-steps,
.post-content .dcp-steps,
article .dcp-steps {
    background: #faf5ff !important;
    border: 1px solid #d8b4fe !important;
    border-left: 4px solid #a855f7 !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 25px 0 !important;
    box-sizing: border-box !important;
}
.dcp-steps p:first-child,
.entry-content .dcp-steps p:first-child {
    margin: 0 0 14px !important;
    color: #6b21a8 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
.dcp-steps ol,
.entry-content .dcp-steps ol {
    margin: 0 !important;
    padding: 0 0 0 22px !important;
    color: #581c87 !important;
}
.dcp-steps li,
.entry-content .dcp-steps li {
    padding: 8px 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}
.dcp-steps li strong,
.entry-content .dcp-steps li strong {
    color: #6b21a8 !important;
    font-weight: 600 !important;
}

/* Micro-CTA - Subtle gray */
.dcp-micro-cta,
.entry-content .dcp-micro-cta,
.post-content .dcp-micro-cta,
article .dcp-micro-cta {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin: 25px 0 !important;
    text-align: center !important;
    font-style: normal !important;
    box-sizing: border-box !important;
}
.dcp-micro-cta em,
.entry-content .dcp-micro-cta em {
    font-style: normal !important;
    color: #475569 !important;
    font-size: 15px !important;
}
.dcp-micro-cta a,
.entry-content .dcp-micro-cta a {
    color: #2563eb !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.dcp-micro-cta a:hover,
.entry-content .dcp-micro-cta a:hover {
    text-decoration: underline !important;
}

/* Comparison Table */
.dcp-comparison{width:100%;border-collapse:collapse;margin:20px 0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.dcp-comparison th{background:#1e293b;color:#fff;padding:12px 16px;text-align:left;font-weight:600}
.dcp-comparison td{padding:12px 16px;border-bottom:1px solid #e2e8f0}
.dcp-comparison tr:last-child td{border-bottom:none}
.dcp-comparison tr:nth-child(even){background:#f8fafc}

/* Responsive */
@media(max-width:768px){
    .dcp-author-box{flex-direction:column;text-align:center}
    .dcp-author-social{justify-content:center}
    .dcp-social-floating{display:none}
    .dcp-cta-slide_in .dcp-cta-content{width:calc(100% - 40px);right:-100%}
    @keyframes dcp-slide-in{to{right:20px}}
    .dcp-cta-buttons{flex-direction:column;gap:10px}
    .dcp-video-grid{grid-template-columns:1fr}
    .dcp-tldr,
    .dcp-callout,
    .dcp-checklist,
    .dcp-warning,
    .dcp-tip,
    .dcp-steps,
    .dcp-action-items,
    .dcp-micro-cta,
    .entry-content .dcp-tldr,
    .entry-content .dcp-callout,
    .entry-content .dcp-checklist,
    .entry-content .dcp-warning,
    .entry-content .dcp-tip,
    .entry-content .dcp-steps {
        padding: 14px 16px !important;
        margin: 20px 0 !important;
    }
    .dcp-comparison{font-size:14px}
    .dcp-comparison th,.dcp-comparison td{padding:10px 12px}
}

/* Print styles - hide non-essential */
@media print{
    .dcp-social-ticker,.dcp-cta-banner,.dcp-feedback-widget,.dcp-cta-floating,.dcp-cta-slide_in,.dcp-video-section{display:none!important}
}
