/* Enhanced Common Styles with SEO and UI Improvements */

/* Common header styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.mt-header {
    margin-top: 80px;
}

/* Enhanced Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #475569 0%, #64748B 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #EA580C 50%, #2563EB 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #F97316;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    letter-spacing: 0.02em;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #F97316 0%, #EA580C 100%);
    border-radius: 2px;
}

.footer-section p, .footer-section li {
    line-height: 1.8;
    margin-bottom: 12px;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    padding: 5px 0;
    transition: padding-left 0.3s ease;
}

.footer-section li:hover {
    padding-left: 10px;
}

.footer-section a {
    color: #F1F5F9;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-section a:hover {
    color: #F97316;
    padding-left: 5px;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F97316 0%, #EA580C 100%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-section a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    text-align: center;
    color: #CBD5E1;
}

.footer-bottom p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #E2E8F0;
}

.developer-credit {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border-left: 4px solid #F97316;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.developer-credit a {
    color: #F97316;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
}

.developer-credit a:hover {
    color: white;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .mt-header {
        margin-top: 120px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .developer-credit {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animation and Interactive Elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar for Better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility */
.footer-section a:focus,
.social-link:focus,
.developer-credit a:focus {
    outline: 2px solid #F97316;
    outline-offset: 3px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header {
        background: #000;
    }
    
    .site-footer {
        background: #000;
    }
    
    .social-link {
        background: #000;
        border: 2px solid #3498db;
    }
}