/* css/main.css */

/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    border-radius: 0 0 20px 20px;
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 500;
}

.header .description {
    font-size: 1em;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-width: 100px;
}

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    display: block;
    color: #ffa500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.95em;
    opacity: 0.9;
    margin-top: 5px;
}

/* Search Section */
.search-section {
    margin-bottom: 25px;
    text-align: center;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 18px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.1em;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    background: white;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ad Placeholder Styles */
.ad-placeholder {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9em;
    margin: 20px 0;
    min-height: 90px;
    text-align: center;
    font-style: italic;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
}

.ad-placeholder-header {
    margin: 25px 0 30px 0;
    min-height: 90px;
}

.ad-placeholder-medium {
    margin: 20px 0;
    min-height: 250px;
}

.ad-placeholder-large {
    margin: 30px 0;
    min-height: 250px;
}

.ad-placeholder-mobile {
    margin: 15px 0;
    min-height: 50px;
    font-size: 0.8em;
}

.ad-placeholder-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    min-height: 50px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Desktop Ad Layouts */
@media (min-width: 768px) {
    .ad-placeholder-header {
        display: flex;
        min-height: 90px; /* 728x90 leaderboard */
    }
    
    .ad-placeholder-medium {
        display: flex;
        min-height: 250px; /* 300x250 rectangle */
    }
    
    .ad-placeholder-large {
        display: flex;
        min-height: 600px; /* 300x600 half-page */
    }
    
    .ad-placeholder-mobile {
        display: none; /* Hide mobile-specific ads on desktop */
    }
}

/* Mobile Ad Layouts */
@media (max-width: 767px) {
    .ad-placeholder-header {
        display: flex;
        min-height: 50px; /* 320x50 mobile banner */
    }
    
    .ad-placeholder-medium {
        display: flex;
        min-height: 250px; /* 300x250 square */
    }
    
    .ad-placeholder-large {
        display: flex;
        min-height: 250px; /* Mobile: use square format */
    }
    
    .ad-placeholder-mobile {
        display: flex; /* Show mobile-specific ads */
    }
    
    .ad-placeholder-sticky {
        display: flex; /* Show sticky ads on mobile */
    }
}

/* Hide sticky ads on desktop by default */
@media (min-width: 768px) {
    .ad-placeholder-sticky {
        display: none;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.no-results p {
    opacity: 0.8;
    font-size: 1.1em;
}

.hidden {
    display: none !important;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 60px;
    padding: 50px 0 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #ffa500;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: #ffa500;
    padding-left: 5px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
}

.footer-stat .stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffa500;
    margin-bottom: 5px;
}

.footer-stat .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding: 20px 20px 0 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0;
    font-size: 0.9em;
}

.footer-note {
    font-style: italic;
    font-size: 0.8em !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85em;
    }
    
    /* Footer responsive */
    .site-footer {
        margin-top: 40px;
        padding: 35px 0 15px 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-stat {
        min-width: 70px;
        padding: 12px;
    }
    
    .footer-stat .stat-number {
        font-size: 1.3em;
    }
}