/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    font-size: 0.9em;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li + li:before {
    content: "›";
    padding: 0 8px;
    color: #666;
}

.breadcrumb a {
    color: #4169E1;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

header p {
    color: #555;
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Kontenery reklamowe */
.ad-container-top {
    max-width: 970px;
    margin: 20px auto;
    min-height: 90px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ad-container-content {
    max-width: 970px;
    margin: 30px auto;
    min-height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Game List Container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.gameItem {
    position: relative;
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gameItem:hover {
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.4);
    transform: translateY(-8px);
}

.gameItem:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(65, 135, 225, 0.5);
}

.gameItem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.gameItem h3 {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 600;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #4169E1;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.5em;
    margin: 20px 0 15px 0;
}

.content-section p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 1.05em;
}

.content-section ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4169E1;
    font-weight: bold;
}

/* Recommended Games Section */
.recommended-games ul li a {
    color: #4169E1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recommended-games ul li a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.98);
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #4169E1;
    border-radius: 8px;
}

.faq-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    margin: 0;
}

/* Section Headings in Main */
#gameListSection h2 {
    text-align: center;
    color: white;
    font-size: 2.2em;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ads Container (Sidebar) */
.ads-container {
    display: none;
    position: fixed;
    top: 120px;
    width: 160px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 100;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.ads-container-left {
    left: 10px;
}

.ads-container-right {
    right: 10px;
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin-bottom: 15px;
}

footer nav a {
    color: #4169E1;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .ads-container {
        display: block;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .flex-container {
        gap: 15px;
    }

    .gameItem {
        width: calc(50% - 15px);
        padding: 10px;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    #gameListSection h2 {
        font-size: 1.7em;
    }

    .ad-container-top,
    .ad-container-content {
        max-width: 100%;
        margin: 15px 0;
    }

    .ads-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .gameItem {
        width: calc(50% - 10px);
    }

    .content-section h2 {
        font-size: 1.4em;
    }
}
