/**
 * Gaming Footer Styles
 * 
 * Modern gaming-themed footer design with stats,
 * newsletter, and community features.
 *
 * @package OutputLag
 * @since 1.0.0
 */

/* Footer Container */
.site-footer.gaming-footer {
    background: linear-gradient(to bottom, #0A0A0A 0%, #000000 100%);
    color: #E8E8E8;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer.gaming-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(138, 43, 226, 0.5) 50%, 
        transparent 100%
    );
}

/* Gaming Stats Bar */
.footer-gaming-stats {
    background: rgba(138, 43, 226, 0.05);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    padding: 2rem 0;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item svg {
    width: 32px;
    height: 32px;
    color: #8A2BE2;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #E8E8E8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-number.live-count {
    color: #FF3B30;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: #A8A8A8;
    margin-top: 0.25rem;
}

/* Main Footer */
.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo-wrapper {
    margin-bottom: 1rem;
}

.footer-custom-logo img {
    max-height: 50px;
    width: auto;
}

.footer-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8E8E8;
    text-decoration: none;
}

.brand-tagline {
    font-size: 0.875rem;
    color: #A8A8A8;
    margin-top: 0.5rem;
}

/* Social Links */
.social-connect {
    margin-top: 1rem;
}

.social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #C8C8C8;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #A8A8A8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
    color: #8A2BE2;
    transform: translateY(-2px);
}

/* Platform Badges */
.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #A8A8A8;
}

/* Footer Navigation */
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #E8E8E8;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #A8A8A8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: #8A2BE2;
    transform: translateX(4px);
}

.footer-nav svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-desc {
    font-size: 0.875rem;
    color: #A8A8A8;
    margin: 0;
}

.gaming-newsletter-form {
    margin-top: 1rem;
}

.gaming-newsletter-form .form-group {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.gaming-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #E8E8E8;
    font-size: 0.9375rem;
}

.gaming-newsletter-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(138, 43, 226, 0.4);
}

.gaming-newsletter-form input[type="email"]::placeholder {
    color: #666;
}

.btn-subscribe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8A2BE2 0%, #6B21A8 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #9B3BF2 0%, #7B31B8 100%);
    transform: translateX(2px);
}

.btn-subscribe.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-subscribe.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Newsletter Perks */
.newsletter-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #A8A8A8;
}

.perk-item svg {
    width: 14px;
    height: 14px;
    color: #10B981;
}

/* App Download */
.app-download {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-cta {
    font-size: 0.875rem;
    color: #C8C8C8;
    margin: 0 0 1rem;
}

.app-buttons {
    display: flex;
    gap: 0.75rem;
}

.app-badge img {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.app-badge:hover img {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.copyright {
    font-size: 0.875rem;
    color: #888;
}

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

.legal-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #C8C8C8;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 1.5rem;
}

.security-badge,
.performance-badge,
.carbon-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #888;
}

.security-badge svg,
.performance-badge svg,
.carbon-badge svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.load-time {
    color: #10B981;
}

/* Developer Bar */
.footer-dev-bar {
    background: #000;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.dev-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #666;
}

.heart-icon {
    color: #FF3B30;
    vertical-align: middle;
}

.separator {
    opacity: 0.3;
}

.dev-content a {
    color: #8A2BE2;
    text-decoration: none;
}

.dev-content a:hover {
    text-decoration: underline;
}

/* Gaming Back to Top Button */
.gaming-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.gaming-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.gaming-back-to-top:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateY(-4px);
}

.button-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.button-inner svg {
    width: 16px;
    height: 16px;
    color: #8A2BE2;
}

.button-text {
    font-size: 0.625rem;
    font-weight: 600;
    color: #8A2BE2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: #8A2BE2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .gaming-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gaming-back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .gaming-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .platform-badges {
        justify-content: center;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gaming-newsletter-form .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .gaming-newsletter-form input[type="email"] {
        border-radius: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .btn-subscribe {
        border-radius: 8px;
        justify-content: center;
    }
}

/* Dark Mode Already Active */
body.dark-mode .site-footer.gaming-footer {
    background: linear-gradient(to bottom, #000000 0%, #0A0A0A 100%);
}

/* Animations */
@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stat-number.live-count {
    animation: pulse-live 2s ease-in-out infinite;
}