/* Nicole Daily Blog Generator Styles */

.ndbg-internal-link {
    color: #007cba;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ndbg-internal-link:hover {
    color: #005177;
    text-decoration: none;
}

.ndbg-faq-section {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.ndbg-faq-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
    font-weight: 500;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.ndbg-related-posts {
    margin-top: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.ndbg-related-posts h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.related-post-image {
    margin-bottom: 10px;
}

.related-post-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.related-post-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.related-post-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-item h4 a:hover {
    color: #007cba;
}

.related-post-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.image-credit {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.image-credit a {
    color: #007cba;
    text-decoration: none;
}

.image-credit a:hover {
    text-decoration: underline;
}

/* Admin Styles */
.ndbg-dashboard {
    max-width: 1200px;
}

.ndbg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ndbg-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.ndbg-stat-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.ndbg-stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.ndbg-stat-card p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.ndbg-actions {
    margin: 30px 0;
    text-align: center;
}

.ndbg-actions .button {
    margin: 0 10px;
}

.ndbg-recent-posts {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ndbg-recent-posts h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .ndbg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ndbg-faq-section,
    .ndbg-related-posts {
        padding: 20px;
        margin-top: 30px;
    }
    
    .ndbg-actions .button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

/* Schema.org structured data styling (hidden but accessible) */
script[type="application/ld+json"] {
    display: none;
}

/* Loading states */
.ndbg-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ndbg-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: ndbg-spin 1s linear infinite;
}

@keyframes ndbg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table of Contents Styles */
.ndbg-table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ndbg-table-of-contents h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.ndbg-table-of-contents ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.ndbg-table-of-contents ol li {
    margin-bottom: 5px;
}

.ndbg-table-of-contents a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.ndbg-table-of-contents a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Breadcrumb Styles */
.ndbg-breadcrumb {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.ndbg-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ndbg-breadcrumb li {
    display: flex;
    align-items: center;
}

.ndbg-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ndbg-breadcrumb a:hover {
    color: #005177;
    text-decoration: underline;
}

.ndbg-breadcrumb span {
    margin: 0 8px;
    color: #6c757d;
    font-weight: normal;
}

/* Smooth scrolling for TOC links */
html {
    scroll-behavior: smooth;
}

/* Heading anchor links styling */
h2[id], h3[id], h4[id] {
    scroll-margin-top: 80px; /* Offset for fixed headers */
}

/* Mobile responsive for TOC and breadcrumbs */
@media (max-width: 768px) {
    .ndbg-table-of-contents {
        padding: 15px;
        margin: 20px 0;
    }
    
    .ndbg-breadcrumb {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .ndbg-breadcrumb ol {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ndbg-breadcrumb span {
        display: none;
    }
} 