/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Professional Footer Styles */
.footer-modern {
    background: var(--neutral-800);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    width: 100vw;
    min-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Tło pod footerem - ten sam kolor co footer - BEST PRACTICE UX */
/* Zgodnie z best practice UX, obszar pod footerem powinien mieć ten sam kolor co footer */
/* aby uniknąć wizualnej przerwy i zapewnić spójność wizualną */
html {
    background-color: var(--neutral-800) !important;
}

body {
    background-color: #fff;
}

.footer-section {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0.25rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.eco-link {
    color: #28a745 !important;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: #e4405f;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.polish-capital-link {
    transition: var(--transition-smooth);
}

.polish-capital-link:hover {
    transform: scale(1.05);
}

.footer-copyright {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: var(--z-scroll-top);
    box-shadow: var(--shadow-soft);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Footer responsive styles - UX best practices */
@media (max-width: 768px) {
    .footer-section {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .footer-links {
        padding-left: 0;
    }
}

/* Global Modal Channels Grid Styles - consistent across all pages (telewizja/pakiety style) */
.modal-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-channel-logo {
    background: var(--neutral-50);
    border-radius: var(--border-radius-modern);
    padding: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.modal-channel-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.modal-channel-logo:hover {
    background: var(--neutral-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.modal-channel-logo:hover::before {
    left: 100%;
}

.modal-channel-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Scrollbar styling for modal */
.modal-channels-grid::-webkit-scrollbar {
    width: 8px;
}

.modal-channels-grid::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 4px;
}

.modal-channels-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-channels-grid::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
    </style>
