/* home.css - Style dla strony głównej */

:root {
    --primary-blue: #3498db;
    --dark-blue: #2c3e50;
    --light-gray: #ecf0f1;
    --medium-gray: #95a5a6;
    --white: #ffffff;
    --success: #2ecc71;
    --warning: #f39c12;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%233498db" width="1200" height="400"/><circle cx="100" cy="100" r="50" fill="%232980b9" opacity="0.3"/><circle cx="900" cy="300" r="80" fill="%232980b9" opacity="0.3"/><circle cx="600" cy="150" r="60" fill="%232980b9" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--success);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-left: 8px;
}

/* --- Ad Containers --- */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.ad-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    text-align: center;
}

.ad-top-banner .ad-placeholder {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-medium-rectangle {
    width: 300px;
    height: 250px;
}

.ad-half-page {
    width: 300px;
    height: 600px;
}

.ad-in-feed-placeholder {
    width: 100%;
    height: 120px;
}

.ad-bottom-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

/* --- Age Filters --- */
.age-filters {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    padding: 10px 20px;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-pill.active {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-sidebar-top,
.ad-sidebar-bottom {
    position: sticky;
    top: 100px;
}

.stats-box {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stats-box h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: var(--dark-blue);
}

.stats-box h3 i {
    margin-right: 8px;
    color: var(--primary-blue);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9em;
    color: var(--medium-gray);
    margin-top: 5px;
}

/* --- Main Content --- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Categories Section --- */
.categories-section h2,
.recent-section h2 {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.categories-section h2 i,
.recent-section h2 i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--category-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3em;
    color: var(--category-color);
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.1em;
    color: var(--dark-blue);
    margin: 10px 0;
}

.category-count {
    font-size: 0.9em;
    color: var(--medium-gray);
    margin: 5px 0;
}

.category-count i {
    margin-right: 5px;
}

.age-badge {
    display: inline-block;
    background-color: var(--warning);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 10px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--medium-gray);
    padding: 40px;
}

/* --- Recent Section --- */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    gap: 15px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.recent-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.recent-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5em;
    flex-shrink: 0;
}

.recent-content h4 {
    margin: 0 0 8px 0;
    color: var(--dark-blue);
    font-size: 1em;
}

.recent-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--medium-gray);
}

.category-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.category-link:hover {
    text-decoration: underline;
}

.time-ago i {
    margin-right: 4px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9em;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        display: grid;
    }

    .main-content {
        order: 1;
    }

    .ad-sidebar-bottom {
        display: none;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .filter-pills {
        gap: 8px;
    }

    .filter-pill {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
