/**
 * Additional Components CSS
 *
 * @package Informativo_Angolano
 * @since 1.0.0
 */

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ==========================================================================
   STICKY HEADER ANIMATIONS
   ========================================================================== */

.site-header {
    transition: transform 0.3s ease;
}

.site-header.scroll-down {
    transform: translateY(-100%);
}

.site-header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==========================================================================
   AUTHOR BIO
   ========================================================================== */

.author-bio {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: 8px;
    margin: var(--spacing-xl) 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    margin: 0 0 var(--spacing-xs);
}

.author-name a {
    color: var(--secondary-color);
}

.author-description {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.entry-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.entry-share span {
    font-weight: 600;
    color: var(--text-color);
}

.entry-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-color);
    transition: var(--transition);
}

.entry-share a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   TAGS
   ========================================================================== */

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.entry-tags svg {
    flex-shrink: 0;
}

.entry-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.entry-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

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

.archive-header,
.search-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
}

.archive-title,
.search-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.archive-title span,
.search-title span {
    color: var(--primary-color);
}

.archive-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.search-results-count {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.search-form-wrapper {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0;
}

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

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-widget h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* ==========================================================================
   SITE INFO
   ========================================================================== */

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: var(--white);
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

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

.page-header {
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.no-results {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.no-results h3 {
    margin: var(--spacing-xl) 0 var(--spacing-md);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .site-info-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .entry-share {
        justify-content: center;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .back-to-top,
    .reading-progress,
    .entry-share,
    .menu-toggle {
        display: none !important;
    }
}
