/* Author Footer & Visitor Counter Styles */

.author-footer-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 30px;
    margin-top: 60px;
    color: white;
}

/* Visitor Statistics Card */
.visitor-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-value.count-updated {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Author Information Card */
.author-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.author-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.author-image {
    position: relative;
    width: 120px;
    height: 120px;
}

.author-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.author-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    color: white;
    font-size: 14px;
}

.author-details {
    flex: 1;
    color: #333;
}

.prepared-by-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.prepared-by-label i {
    color: #667eea;
    margin-right: 5px;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    font-size: 1rem;
    color: #666;
    margin: 0 0 15px 0;
}

.author-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.author-quote {
    max-width: 300px;
    color: #666;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
    margin-bottom: 10px;
}

.quote-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-text i {
    margin: 0 5px;
}

/* Layout adjustment for pages with sidebar (lesson pages) */
@media (min-width: 768px) {
    body:has(.sidebar) .author-footer-section {
        margin-left: 250px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .author-image {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .author-quote {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .quote-icon {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .author-footer-section {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .visitor-stats-card,
    .author-info-card {
        padding: 25px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .author-image {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-title {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .author-footer-section {
        background: white;
        color: black;
        page-break-before: always;
    }
    
    .visitor-stats-card {
        display: none;
    }
    
    .author-info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .social-link {
        display: none;
    }
}
