/**
 * Main Theme Styles
 *
 * @package ToolHub
 * @since 1.0.0
 */

/* ==========================================================================
   COMPONENTS - BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background: #0052a3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   COMPONENTS - BADGES
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-type {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-category {
    background: #f3e5f5;
    color: #6a1b9a;
    text-decoration: none;
}

.badge-difficulty {
    color: #fff;
}

.badge-beginner {
    background: #1a7f37;
}

.badge-intermediate {
    background: #ffc107;
    color: #000;
}

.badge-advanced {
    background: #dc3545;
}

/* ==========================================================================
   COMPONENTS - CARDS
   ========================================================================== */

.tool-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tool-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.tool-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-card__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tool-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.tool-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-card__excerpt {
    color: #5c6370;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.tool-card__categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tool-card__category {
    font-size: 0.75rem;
    color: #5c6370;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
}

.tool-card__category:hover {
    background: #e5e7eb;
    color: #374151;
}

.tool-card__link {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.tool-card__link:hover {
    color: #fff;
    background: #0066cc;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Category Cards */
.category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.category-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.category-card__title a:hover {
    color: #0066cc;
}

.category-card__description {
    color: #5c6370;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.category-card__count {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   LAYOUT - GRIDS
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.5rem 0;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #5c6370;
}

.primary-navigation {
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.primary-menu a:hover {
    color: #0066cc;
}

.header-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */

.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    margin: 0;
    font-size: 2rem;
}

.section-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.featured-tools-section,
.latest-tools-section,
.categories-section {
    margin: 3rem 0;
}

.cta-section {
    background: #f9fafb;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 3rem 0;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: #5c6370;
    margin-bottom: 2rem;
}

/* ==========================================================================
   SINGLE TOOL PAGE
   ========================================================================== */

.breadcrumbs-wrapper {
    margin: 1rem 0;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: #5c6370;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #fff;
    background: #0066cc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.tool-page-header {
    margin-bottom: 2rem;
}

.tool-meta-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tool-summary {
    font-size: 1.125rem;
    color: #5c6370;
    margin-top: 0.5rem;
}

.tool-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .tool-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.tool-info-column {
    min-width: 0;
}

.tool-section {
    margin-bottom: 2rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.tool-execution-column {
    min-width: 0;
    position: relative;
}

/* Author Box - WordPress Blog Style */
.author-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-box .author-name {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

.author-box .author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.author-box .author-name a:hover {
    color: #0066cc;
}

.author-box .author-bio {
    color: #5c6370;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-box .author-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.author-box .author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.author-box .author-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.tool-runner-sticky {
    position: sticky;
    top: 100px;
}

.tool-runner-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
}

.tool-runner-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.tool-iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.faq-question {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.faq-answer {
    color: #5c6370;
    margin: 0;
}

/* Ad Areas */
.ad-area {
    margin: 2rem 0;
    text-align: center;
}

/* Related Tools */
.related-tools-section {
    margin: 3rem 0;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.submission-header {
    margin-bottom: 2rem;
}

.submission-intro {
    font-size: 1.125rem;
    color: #5c6370;
}

.submission-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.submission-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.submission-form {
    max-width: 800px;
}

.form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-section-description {
    color: #5c6370;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.required {
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.code-input {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   FILTERS & ARCHIVE
   ========================================================================== */

.archive-header {
    margin-bottom: 2rem;
}

.tools-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
}

.pagination a:hover {
    background: #f3f4f6;
}

.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.footer-info {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* ==========================================================================
   ENHANCED FOOTER STYLES
   ========================================================================== */

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid #374151;
}

@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-about-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #0066cc;
}

.footer-category-list,
.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-category-list li,
.footer-quick-links li {
    margin-bottom: 0.5rem;
}

.footer-category-list a,
.footer-quick-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-category-list a:hover,
.footer-quick-links a:hover {
    color: #fff;
}

.footer-newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #374151;
    border-radius: 4px 0 0 4px;
    background: #1a1a1a;
    color: #fff;
}

.footer-newsletter-button {
    padding: 0.5rem 1rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-newsletter-button:hover {
    background: #0052a3;
}

.footer-newsletter-note {
    font-size: 0.75rem;
    color: #5c6370;
    margin-top: 0.5rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

@media (max-width: 640px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
}

.footer-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

.footer-menu a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: #0052a3;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RATING SYSTEM STYLES
   ========================================================================== */

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #d1d5db;
    transition: color 0.2s;
}

.star.filled,
.star.hover {
    color: #ffc107;
}

.star.interactive {
    cursor: pointer;
}

.star.interactive:hover {
    transform: scale(1.1);
}

.rating-average {
    font-weight: 600;
    color: #1a1a1a;
}

.rating-count {
    color: #5c6370;
    font-size: 0.875rem;
}

/* ==========================================================================
   SINGLE TOOL PAGE LAYOUT (60/40 SPLIT)
   ========================================================================== */

.tool-content-wrapper {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .tool-content-wrapper {
        grid-template-columns: 1fr;
    }

    .tool-execution-column {
        order: -1;
        /* Tool appears first on mobile */
    }
}

.tool-runner-sticky {
    position: sticky;
    top: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================================================== */

/* Base mobile styles (already mobile-first) */

/* Tablet - 768px and up */
@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Large Desktop - 1280px and up */
@media (min-width: 1280px) {
    .site-container {
        max-width: 1200px;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .tool-meta-badges {
        flex-wrap: wrap;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .tool-button {
        width: 100%;
        display: block;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   PERFORMANCE - LAZY LOADING & OPTIMIZATION
   ========================================================================== */

/* Loading skeleton for lazy images */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {

    .back-to-top,
    .site-header,
    .site-footer,
    .ad-area,
    .related-tools-section {
        display: none !important;
    }

    .tool-content-wrapper {
        display: block;
    }
}

/* ==========================================================================
   MOBILE MENU - RESPONSIVE HAMBURGER
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    /* Push to right side */
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    position: relative;
    transition: background 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    transition: transform 0.3s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.mobile-menu-toggle.is-active .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.is-active .hamburger-icon::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.is-active .hamburger-icon::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu styles */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 10000;
        /* Higher z-index to be above overlay */
        overflow-y: auto;
        padding: 4rem 0 2rem;
    }

    .main-navigation.is-open {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        padding: 0;
        position: relative;
        z-index: 10001;
        /* Ensure menu items are clickable */
    }

    .primary-menu li {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        z-index: 10001;
    }

    .primary-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: #1a1a1a;
        position: relative;
        z-index: 10001;
    }

    .primary-menu a:hover {
        background: #f0f0f0;
        color: #1a1a1a;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        /* z-index removed - menu handles its own stacking */
    }
}

/* ==========================================================================
   MOBILE FOOTER OPTIMIZATION
   ========================================================================== */

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .footer-widget-area {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #374151;
    }

    .footer-widget-area:last-child {
        border-bottom: none;
    }

    /* Collapsible footer sections on mobile */
    .footer-widget-title {
        position: relative;
        cursor: pointer;
        padding-right: 2rem;
        user-select: none;
    }

    .footer-widget-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 0;
        font-size: 1.5rem;
        line-height: 1;
        transition: transform 0.3s;
    }

    .footer-widget-area.is-expanded .footer-widget-title::after {
        content: '−';
    }

    .footer-category-list,
    .footer-quick-links {
        display: none;
        margin-top: 1rem;
    }

    .footer-widget-area.is-expanded .footer-category-list,
    .footer-widget-area.is-expanded .footer-quick-links {
        display: block;
    }

    /* About section always visible */
    .footer-about .footer-about-text,
    .footer-about .footer-social-icons {
        display: block !important;
    }

    .footer-about .footer-widget-title::after {
        display: none;
    }

    /* Reduce category list on mobile */
    .footer-category-list li:nth-child(n+5) {
        display: none;
    }

    .footer-quick-links li:nth-child(n+5) {
        display: none;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-copyright p {
        font-size: 0.8125rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop menu */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-navigation {
        display: block;
    }

    .primary-menu {
        display: flex;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .primary-menu a {
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

    .primary-menu a:hover {
        color: #fff !important;
        background: #0066cc;
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

/* Blog Archive Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #5c6370;
}

.blog-card__categories {
    display: flex;
    gap: 0.5rem;
}

.blog-card__category {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.blog-card__category:hover {
    text-decoration: underline;
}

.blog-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: #0066cc;
}

.blog-card__excerpt {
    color: #5c6370;
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.blog-card__author {
    font-size: 0.875rem;
    color: #5c6370;
}

.blog-card__link {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.938rem;
}

.blog-card__link:hover {
    text-decoration: underline;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.938rem;
    color: #5c6370;
}

.post-meta a {
    color: #0066cc;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.063rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags strong {
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #5c6370;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-link:hover {
    background: #e5e7eb;
    color: #374151;
}

.author-bio-box {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.author-bio-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.author-bio-content {
    display: flex;
    gap: 1.5rem;
}

.author-bio-content img {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio-text h4 {
    margin: 0 0 0.5rem 0;
}

.author-bio-text p {
    margin-bottom: 1rem;
    color: #5c6370;
}

.author-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .post-title {
        font-size: 1.875rem;
    }

    .author-bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   BLOG FULL-WIDTH LAYOUT - PREMIUM DESIGN
   ========================================================================== */

/* Full Width Layout Container */
.full-width-layout {
    width: 100%;
}

.blog-archive-page.full-width-layout .archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-archive-page.full-width-layout .archive-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-archive-page.full-width-layout .archive-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Wrapper - Side by Side Layout */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin: 2rem 0 4rem;
}

@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        order: 2;
    }
}

.blog-main-content {
    min-width: 0;
}

/* Blog Posts Grid Layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 767px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Blog Sidebar */
.blog-sidebar {
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-widget:hover::before {
    opacity: 1;
}

/* Widget hover - subtle effect only, no text color change */
/* The widget has a gradient pseudo-element that shows on hover */
/* We remove the aggressive white text change - let links use their normal hover */

.sidebar-widget .widget-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget .widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widget ul li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget ul li:first-child {
    padding-top: 0;
}

.sidebar-widget ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.938rem;
}

.sidebar-widget ul li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.sidebar-widget ul li a .cat-count,
.sidebar-widget ul li a .post-count {
    background: #f3f4f6;
    color: #5c6370;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Widget */
.sidebar-widget .search-form {
    display: flex;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.sidebar-widget .search-form:focus-within {
    border-color: #667eea;
}

.sidebar-widget .search-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 0.938rem;
    background: transparent;
}

.sidebar-widget .search-field:focus {
    outline: none;
}

.sidebar-widget .search-submit {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-widget .search-submit:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Popular Tools Widget Special Styling */
.sidebar-widget.popular-tools-widget ul li a::before {
    content: '🔧';
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Recent Posts Widget with Numbers */
.sidebar-widget ul li {
    counter-increment: post-counter;
}

/* Newsletter Widget */
.sidebar-widget.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar-widget.newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-widget.newsletter-widget .widget-title::before {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-widget.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.sidebar-widget.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.938rem;
}

.sidebar-widget.newsletter-widget button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-widget.newsletter-widget button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ==========================================================================
   PREMIUM TOOL FILTERS - ENHANCED DESIGN
   ========================================================================== */

.tools-filters.premium-filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tools-filters.premium-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.filter-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 12px;
}

.filter-header-text {
    display: flex;
    flex-direction: column;
}

.filter-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.filter-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.active-filters-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.badge-count {
    background: #fff;
    color: #667eea;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.badge-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Form */
.premium-filters .filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding: 2rem;
    align-items: end;
}

.premium-filters .filter-group {
    display: flex;
    flex-direction: column;
}

.premium-filters .filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.filter-label-icon {
    font-size: 1rem;
}

.premium-filters .filter-group select,
.premium-filters .filter-group input[type="text"] {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.938rem;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #1a1a1a;
}

.premium-filters .filter-group select:hover,
.premium-filters .filter-group input[type="text"]:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.premium-filters .filter-group select:focus,
.premium-filters .filter-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.938rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1rem;
}

.filter-reset-btn {
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Active Filter Chips */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.chips-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5c6370;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: chip-appear 0.3s ease;
}

@keyframes chip-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.chip-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Filters */
@media (max-width: 767px) {
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }

    .filter-header-content {
        flex-direction: column;
    }

    .premium-filters .filter-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-submit-btn,
    .filter-reset-btn {
        width: 100%;
        justify-content: center;
    }

    .active-filter-chips {
        padding: 1rem 1.5rem;
    }
}

/* ==========================================================================
   HEADER CTA BUTTON
   ========================================================================== */

.header-cta {
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* Header Styles */
.site-header.header-style-transparent {
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.site-header.header-style-transparent .site-title a,
.site-header.header-style-transparent .primary-menu a {
    color: #fff;
}

.site-header.header-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.site-header.header-style-gradient .site-title a,
.site-header.header-style-gradient .primary-menu a {
    color: #fff;
}

.site-header.header-style-gradient .header-cta-btn {
    background: #fff;
    color: #667eea !important;
}

@media (max-width: 1023px) {
    .header-cta {
        display: none;
    }
}

/* ==========================================================================
   SINGLE BLOG POST PAGE
   ========================================================================== */

.single-blog-page.full-width-layout {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Single Post Hero */
.single-post-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: #fff;
    margin-bottom: 3rem;
}

.single-post-hero .breadcrumbs-wrapper {
    margin-bottom: 1.5rem;
}

.single-post-hero .breadcrumb,
.single-post-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-hero .breadcrumb a:hover {
    color: #fff;
}

.single-post-hero .post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.single-post-hero .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.single-post-hero .post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-post-hero .post-author img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.single-post-hero .post-author a {
    color: #fff;
    font-weight: 600;
}

.single-post-hero .post-author a:hover {
    text-decoration: underline;
    color: #fff;
}

.single-post-hero .post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-hero .post-date svg {
    opacity: 0.8;
}

.single-post-hero .badge-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-post-hero .badge-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Single Post Content */
.single-post-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.single-post-content .post-featured-image {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.single-post-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content .post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.single-post-content .post-content a {
    color: #667eea;
}

.single-post-content .post-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Post Tags */
.single-post-content .post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.single-post-content .post-tags .tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    margin: 0.25rem;
    background: #f0f0f5;
    color: #555;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.single-post-content .post-tags .tag-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* Author Bio Box */
.single-post-content .author-bio-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.single-post-content .author-bio-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 1rem;
}

.single-post-content .author-bio-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.single-post-content .author-bio-content img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post-content .author-bio-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.single-post-content .author-bio-text p {
    color: #666;
    margin-bottom: 0.75rem;
}

.single-post-content .author-link {
    color: #667eea;
    font-weight: 600;
    transition: color 0.2s ease;
}

.single-post-content .author-link:hover {
    color: #764ba2;
}

/* Post Navigation */
.post-navigation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f5;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 45%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-navigation .nav-link:hover {
    color: #667eea;
}

.post-navigation .nav-arrow {
    font-size: 1.25rem;
}

/* ==========================================================================
   TOOL ACTIONS
   ========================================================================== */

.tool-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.tool-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tool-action-link:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.tool-action-link .action-icon {
    font-size: 1rem;
}

/* ==========================================================================
   REPORT ISSUE PAGE
   ========================================================================== */

.report-issue-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.report-issue-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.report-issue-page .page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.report-issue-page .entry-content {
    margin-bottom: 3rem;
}

.report-issue-page .entry-content h2,
.report-issue-page .entry-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.report-issue-page .entry-content ul {
    padding-left: 1.5rem;
}

.report-issue-page .entry-content li {
    margin-bottom: 0.5rem;
}

/* Premium Form Styling */
.premium-form {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.premium-form label .required {
    color: #dc3545;
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.premium-form textarea {
    resize: vertical;
    min-height: 120px;
}

.premium-form .form-actions {
    margin-top: 2rem;
    text-align: center;
}

.premium-form .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-form .btn-icon {
    font-size: 1.25rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   GLOBAL HOVER COLOR FIXES - Comprehensive Hover States
   ========================================================================== */

/* Main Menu Hover - Keep subtle */
.primary-menu a:hover {
    color: #667eea;
}

/* Footer Menu Links */
.footer-menu a:hover {
    color: #667eea;
}

/* ==========================================================================
   TOOL CARD HOVER - Card-level hover activates title change
   ========================================================================== */

/* When hovering anywhere on the tool card, the title changes color */
.tool-card:hover .tool-card__title a {
    color: #667eea;
    text-decoration: none;
}

/* When hovering directly on the title, show the gradient background */
.tool-card__title a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 4px;
    text-decoration: none;
}

/* Tool card link hover */
.tool-card:hover .tool-card__link {
    color: #667eea;
}

/* ==========================================================================
   BLOG CARD HOVER - Card-level hover activates title change
   ========================================================================== */

/* When hovering anywhere on the blog card, the title changes color */
.blog-card:hover .blog-card__title a {
    color: #667eea;
    text-decoration: none;
}

/* When hovering directly on the title */
.blog-card__title a:hover {
    color: #764ba2 !important;
}

/* Blog card link hover */
.blog-card:hover .blog-card__link {
    color: #764ba2;
}

.blog-card__link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* ==========================================================================
   CATEGORY CARD HOVER
   ========================================================================== */

/* When hovering anywhere on the category card, the title changes color */
.category-card:hover .category-card__title a {
    color: #667eea;
}

/* Direct title hover */
.category-card__title a:hover {
    color: #764ba2 !important;
}

/* ==========================================================================
   SIDEBAR WIDGET HOVER
   ========================================================================== */

/* Sidebar links */
.sidebar-widget a:hover,
.blog-sidebar a:hover {
    color: #667eea;
}

/* Sidebar list item links with slide effect */
.sidebar-widget ul li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* ==========================================================================
   FOOTER HOVER STYLES
   ========================================================================== */

/* Footer Widget Links */
.footer-widget-area a:hover,
.footer-widgets a:hover {
    color: #fff;
    opacity: 1;
}

/* Footer Category/Quick Links */
.footer-category-list a:hover,
.footer-quick-links a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

/* ==========================================================================
   CATEGORY BADGES HOVER
   ========================================================================== */

.badge-category:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tool card category badges */
.tool-card__category:hover {
    background: #667eea;
    color: #fff;
}

/* ==========================================================================
   AUTHOR AND META LINKS HOVER
   ========================================================================== */

/* Author Links in Posts */
.post-meta a:hover,
.post-author a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Single Post Content Links */
.post-content a:hover {
    color: #764ba2;
}

/* Single Blog Page Links in Hero */
.single-post-hero a:hover {
    color: #fff;
}

/* Breadcrumb Links */
.breadcrumb a:hover {
    text-decoration: underline;
    color: #667eea;
}

/* Tool Page Author Links */
.author-links .author-link:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Author box links */
.author-box .author-name a:hover {
    color: #667eea;
}

.author-box .author-link:hover {
    color: #764ba2;
}

/* ==========================================================================
   NAVIGATION HOVER
   ========================================================================== */

/* Post navigation */
.post-navigation .nav-link:hover {
    color: #667eea;
    transform: translateX(5px);
}

.post-navigation .nav-previous .nav-link:hover {
    transform: translateX(-5px);
}

/* Pagination */
.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ==========================================================================
   BUTTON HOVER STATES
   ========================================================================== */

/* Primary buttons */
.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Secondary buttons */
.btn-secondary:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Header CTA button */
.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   SOCIAL & MISC HOVER
   ========================================================================== */

/* Footer Social Links */
.social-links a:hover,
.social-icon:hover {
    transform: translateY(-3px);
    opacity: 1;
    color: #667eea;
}

/* Search Form Submit */
.search-submit:hover {
    background: #764ba2;
    color: #fff;
}

/* Back to top button */
.back-to-top:hover {
    background: #667eea;
    transform: translateY(-3px);
}

/* Section links */
.section-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Tag links */
.tag-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}


/* Responsive Single Blog */
@media (max-width: 768px) {
    .single-post-hero .post-title {
        font-size: 1.75rem;
    }

    .single-post-hero .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .single-post-content {
        padding: 1.5rem;
    }

    .single-post-content .post-featured-image {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .single-post-content .author-bio-content {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }

    .report-issue-page {
        padding: 1rem;
    }

    .premium-form {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   ENHANCED BREADCRUMBS STYLES
   ========================================================================== */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumbs a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.breadcrumbs .separator {
    opacity: 0.7;
    font-weight: 300;
}

.breadcrumbs .current {
    font-weight: 500;
}

/* Single Blog Page Hero Breadcrumbs */
.single-post-hero .breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-hero .breadcrumbs a:hover {
    color: #fff;
}

.single-post-hero .breadcrumbs .current {
    color: #fff;
}

/* ==========================================================================
   404 ERROR PAGE - PREMIUM DESIGN
   ========================================================================== */

.error-404-page.full-width-layout {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Error Hero Section */
.error-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
}

.error-actions .btn-icon {
    font-size: 1.2rem;
}

.error-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.error-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Error Suggestions Section */
.error-suggestions {
    padding: 4rem 0;
}

.suggestions-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.suggestion-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.suggestion-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.suggestion-card.search-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
}

@media (max-width: 640px) {
    .suggestion-card.search-card {
        grid-column: span 1;
    }
}

/* Search Form in 404 */
.error-suggestions .search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.error-suggestions .search-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.error-suggestions .search-field:focus {
    outline: none;
    border-color: #667eea;
}

.error-suggestions .search-submit {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
}

/* Lists in 404 Cards */
.suggestion-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-card li {
    margin-bottom: 0.75rem;
}

.suggestion-card li:last-child {
    margin-bottom: 0;
}

.suggestion-card a {
    color: #444;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.suggestion-card li:last-child a {
    border-bottom: none;
}

.suggestion-card a:hover {
    color: #667eea;
}

.suggestion-card .count {
    font-size: 0.85rem;
    color: #999;
    background: #f5f5f5;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

/* Mobile Responsive 404 */
@media (max-width: 768px) {
    .error-number {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-hero {
        padding: 3rem 1rem;
    }

    .error-suggestions {
        padding: 2rem 0;
    }

    .suggestions-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .suggestions-grid {
        gap: 1.5rem;
    }

    .suggestion-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   SINGLE BLOG PAGE FULL-WIDTH FIX
   ========================================================================== */

/* Make single blog page content full-width without boxed appearance */
.single-blog-page {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    min-height: 100vh;
}

.single-blog-page .blog-main-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Apply clean content styling without the white box */
.single-blog-page .post-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Keep author bio box styled nicely */
.single-blog-page .author-bio-box {
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Keep post navigation clean */
.single-blog-page .post-navigation {
    background: transparent;
    box-shadow: none;
}

/* Ensure featured image is full-width */
.single-blog-page .post-featured-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Comments area styling */
.single-blog-page .post-comments {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

/* ==========================================================================
   PREMIUM BLOG POST STYLES
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Premium Blog Page */
.premium-blog {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Post Header Hero */
.post-header-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}

.post-header-hero .post-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-header-hero .badge-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-header-hero .badge-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.post-header-hero .post-title {
    font-size: 2.75rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    font-weight: 800;
}

/* Post Meta Bar */
.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.post-meta-left,
.post-meta-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta-bar .post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-meta-bar .post-author img {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.post-meta-bar .post-author a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.post-meta-bar .post-author a:hover {
    color: #667eea;
}

.post-meta-bar .post-date,
.post-meta-bar .reading-time,
.post-meta-bar .post-views,
.post-meta-bar .post-updated {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #5c6370;
    font-size: 0.875rem;
}

.post-meta-bar svg {
    opacity: 0.7;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.social-share-bottom {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.share-label {
    color: #5c6370;
    font-weight: 600;
    font-size: 0.875rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-facebook {
    background: #1877f2;
    color: #fff;
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-linkedin {
    background: #0a66c2;
    color: #fff;
}

.share-pinterest {
    background: #e60023;
    color: #fff;
}

.share-whatsapp {
    background: #25d366;
    color: #fff;
}

.share-copy {
    background: #6b7280;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.toc-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title::before {
    content: '📖';
}

.toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav ul li {
    margin-bottom: 0.5rem;
}

.toc-nav ul li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.938rem;
    display: block;
    padding: 0.375rem 0;
    transition: all 0.2s ease;
}

.toc-nav ul li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.toc-nav ul li.toc-sub {
    padding-left: 1.25rem;
}

.toc-nav ul li.toc-sub a {
    font-size: 0.875rem;
    color: #5c6370;
}

/* Enhanced Author Box */
.author-box-enhanced {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 100%);
    border-radius: 16px;
    margin: 2.5rem 0;
    border-left: 4px solid #667eea;
}

.author-box-enhanced .author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-box-enhanced .author-info {
    flex: 1;
}

.author-box-enhanced .author-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-box-enhanced .author-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.375rem;
}

.author-box-enhanced .author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.author-box-enhanced .author-name a:hover {
    color: #667eea;
}

.author-box-enhanced .author-bio {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-box-enhanced .author-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.author-box-enhanced .author-post-count {
    color: #5c6370;
}

.author-box-enhanced .author-website {
    color: #667eea;
    text-decoration: none;
}

.author-box-enhanced .author-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.author-box-enhanced .author-social-link {
    color: #5c6370;
    transition: color 0.2s ease;
}

.author-box-enhanced .author-social-link:hover {
    color: #667eea;
}

.author-box-enhanced .author-all-posts {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.938rem;
}

.author-box-enhanced .author-all-posts:hover {
    color: #764ba2;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-post-date {
    color: #5c6370;
    font-size: 0.8125rem;
}

/* Enhanced Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.nav-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.post-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.post-navigation .nav-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.post-navigation .nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-navigation .nav-title {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.938rem;
    line-height: 1.4;
}

.post-navigation .nav-arrow {
    color: #667eea;
    font-weight: 700;
}

.post-navigation .nav-next .nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

/* Comments Title */
.comments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.comments-title svg {
    color: #667eea;
}

/* Post Tags - Enhanced */
.post-tags {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background: #f8f9fc;
    border-radius: 12px;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5c6370;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sidebar Recent Posts with Thumbnails */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f5;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.recent-post-title:hover {
    color: #667eea;
}

.recent-post-date {
    color: #5c6370;
    font-size: 0.75rem;
}

/* Tags Cloud Widget */
.tags-cloud-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud-widget .tagcloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f0f0f5;
    color: #4b5563;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tags-cloud-widget .tagcloud a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* About Widget */
.about-widget p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Newsletter Widget in Sidebar */
.sidebar-widget.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar-widget.newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-widget.newsletter-widget .widget-title::before {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-widget.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.938rem;
}

.newsletter-form button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive Premium Blog */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-header-hero .post-title {
        font-size: 2rem;
    }

    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-meta-left,
    .post-meta-right {
        width: 100%;
        justify-content: flex-start;
    }

    .author-box-enhanced {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-box-enhanced .author-meta,
    .author-box-enhanced .author-social {
        justify-content: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-next .nav-link {
        flex-direction: row;
        text-align: left;
    }

    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   ENHANCED FEATURES STYLES
   ========================================================================== */

/* Favorite Button */
.tool-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #5c6370;
}

.tool-favorite-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.tool-favorite-btn.is-favorite {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.tool-favorite-btn .icon-heart-filled {
    display: none;
}

.tool-favorite-btn.is-favorite .icon-heart-outline {
    display: none;
}

.tool-favorite-btn.is-favorite .icon-heart-filled {
    display: block;
}

/* Favorites/History Grid */
.my-favorites-section,
.tool-history-section {
    padding: 2rem 0;
}

.favorites-header,
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.favorites-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.favorite-tool-card,
.history-tool-card {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.favorite-tool-card:hover,
.history-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.favorite-tool-card h4 {
    margin: 0;
    font-size: 1rem;
}

.favorite-tool-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.remove-favorite {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
    transition: color 0.2s;
}

.remove-favorite:hover {
    color: #ef4444;
}

.history-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.clear-favorites-btn,
.clear-history-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.clear-favorites-btn:hover,
.clear-history-btn:hover {
    background: #fecaca;
}

.no-favorites,
.no-history {
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Search Autocomplete */
.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-title {
    color: #1a1a1a;
    font-weight: 500;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Compare Button */
.tool-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
}

/* Tool Voting */
.tool-vote-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tool-vote-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tool-vote-btn:hover {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-vote-btn.voted {
    background: #eff6ff;
    color: #3b82f6;
}

.tool-vote-btn.downvote-btn:hover,
.tool-vote-btn.downvote-btn.voted {
    color: #ef4444;
    background: #fef2f2;
}

.tool-vote-btn svg {
    width: 18px;
    height: 18px;
}

.vote-count {
    min-width: 1ch;
}

/* Embed Code Section */
.embed-code-section {
    margin: 1.5rem 0;
}

.embed-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #5c6370;
    transition: all 0.2s;
}

.embed-toggle-btn:hover {
    background: #e5e7eb;
}

.embed-code-container {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.embed-code-container.is-visible {
    display: block;
}

.embed-code-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #5c6370;
}

.embed-code-wrapper {
    display: flex;
    gap: 0.5rem;
}

.embed-code-textarea {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    resize: none;
    background: #fff;
}

.copy-embed-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.copy-embed-btn:hover {
    background: #0052a3;
}

/* Tool Usage Count */
.tool-usage-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #5c6370;
}

.tool-usage-count svg {
    color: #10b981;
}

/* Try Another Tool Button */
.try-another-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.try-another-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Idea Vote Button */
.idea-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #5c6370;
}

.idea-vote-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.idea-vote-btn.voted {
    background: #ecfdf5;
    border-color: #10b981;
    color: #10b981;
}

.vote-count {
    font-weight: 700;
}

/* Tool Actions Row Update */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}