/* Blog Article Enhanced Styles - v9.0.0 Complete Overhaul */
/* Adds visual polish, animations, accessibility, and premium UX */

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #30D5C8, #1a8a7d);
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(48, 213, 200, 0.5);
}

/* ============================================
   SKIP TO CONTENT (Accessibility)
   ============================================ */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d4f4a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #30D5C8;
    outline-offset: 2px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs-list a:hover {
    color: #30D5C8;
}

.breadcrumbs-list .separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs-list .current {
    color: #fff;
    font-weight: 500;
}

/* ============================================
   ENHANCED ARTICLE HEADER
   ============================================ */
.article-header {
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.article-category {
    position: relative;
    overflow: hidden;
}

.article-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-subtle 3s infinite;
}

@keyframes shimmer-subtle {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   AUTHOR SECTION
   ============================================ */
.author-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30D5C8, #1a8a7d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   SOCIAL SHARING
   ============================================ */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #333; }

.share-btn.copy-link.copied {
    background: #30D5C8;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-widget {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.toc-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #0d4f4a;
}

.toc-widget h3 i {
    color: #30D5C8;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    background: #f0faf9;
    color: #0d4f4a;
    border-left-color: #30D5C8;
}

/* ============================================
   ENHANCED CONTENT STYLING
   ============================================ */

/* Drop Cap for first paragraph */
.content-wrapper > p.lead::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 8px;
    font-weight: 700;
    color: #0d4f4a;
}

/* Better blockquotes */
.content-wrapper blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #30D5C8;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #444;
    position: relative;
}

.content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: #30D5C8;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Enhanced checklist items */
.checklist li {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checklist li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Enhanced tip boxes */
.tip-box {
    position: relative;
    overflow: hidden;
}

.tip-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: rgba(48, 213, 200, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Enhanced product cards */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced recipe boxes */
.recipe-box {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 213, 200, 0.15);
}

/* Enhanced FAQ items */
.faq-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Enhanced benefits grid */
.benefit-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-item:hover i {
    transform: scale(1.1);
}

.benefit-item i {
    transition: transform 0.3s ease;
}

/* ============================================
   ENHANCED CTA BOX
   ============================================ */
.cta-box {
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-glow 4s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-button-large {
    position: relative;
    overflow: hidden;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button-large:hover::before {
    left: 100%;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d4f4a, #1a8a7d);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FLOATING MOBILE CTA
   ============================================ */
.floating-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0d4f4a, #1a8a7d);
    padding: 15px 20px;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.floating-cta-mobile.visible {
    transform: translateY(0);
}

.floating-cta-mobile a {
    display: block;
    background: #30D5C8;
    color: #1a1a1a;
    text-align: center;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   ENHANCED SIDEBAR
   ============================================ */
.sidebar-widget {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-posts a {
    position: relative;
    padding-left: 20px;
}

.related-posts a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #30D5C8;
    transition: transform 0.2s ease;
}

.related-posts a:hover::before {
    transform: translateX(5px);
}

/* ============================================
   ENHANCED FOOTER
   ============================================ */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #30D5C8, #1a8a7d, #30D5C8);
}

/* 4-column footer layout */
.site-footer .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #30D5C8;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.footer-contact {
    margin-top: 15px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: #30D5C8;
    width: 20px;
}

.footer-contact a {
    color: #30D5C8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ============================================
   ACCESSIBILITY FOCUS STATES
   ============================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #30D5C8;
    outline-offset: 2px;
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
    background: #30D5C8;
    color: #1a1a1a;
}

::-moz-selection {
    background: #30D5C8;
    color: #1a1a1a;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 992px) {
    .toc-widget {
        display: none;
    }
    
    .share-section {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .reading-progress {
        height: 3px;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breadcrumbs-list {
        font-size: 0.8rem;
    }
    
    .floating-cta-mobile {
        display: block;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .content-wrapper > p.lead::first-letter {
        font-size: 3rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .reading-progress,
    .back-to-top,
    .floating-cta-mobile,
    .share-section,
    .site-header,
    .mobile-menu,
    .article-sidebar,
    .cta-box,
    .cta-widget {
        display: none !important;
    }
    
    .article-content .container {
        display: block;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
