/*
Theme Name: TEDs PLAY
Theme URI: https://tedsplayonline.com
Author: Rachid
Description: Free-to-play browser gaming portal with GameMonetize integration. Poki-style mobile-first layout, game categories, and responsive design.
Version: 23.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tedsplay
Domain Path: /languages
Tags: games, arcade, gaming-portal
*/

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid */
.game-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Text Utilities (Tailwind CDN doesn't always include these) */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #f97316;
    color: white;
}

.btn-primary:hover {
    background: #ea580c;
}

/* Header logo - width-driven sizing so height follows the image's own
   aspect ratio (never stretched/squashed). Desktop target: 200-220px wide
   per Ronald's latest spec. Mobile: slightly increased from prior round. */
.custom-logo-link {
    display: block;
}

.custom-logo-link img,
.custom-logo {
    width: 190px;
    height: auto;
    min-width: 160px;
    display: block;
}

@media (min-width: 640px) {
    .custom-logo-link img,
    .custom-logo {
        width: 210px;
        min-width: 200px;
    }
}

/* Header shrinks slightly once scrolled, Poki-style - stays within his
   stated minimums rather than shrinking further */
#tedsplay-header.tedsplay-header-compact .custom-logo-link img,
#tedsplay-header.tedsplay-header-compact .custom-logo {
    width: 160px;
}

@media (min-width: 640px) {
    #tedsplay-header.tedsplay-header-compact .custom-logo-link img,
    #tedsplay-header.tedsplay-header-compact .custom-logo {
        width: 200px;
    }
}

/* Page content styling (for About/Privacy/Terms/Contact pages) */
.content-area {
    color: #374151; /* dark gray for readability on light background */
}

.content-area p {
    margin-bottom: 1rem;
}

.content-area h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-area h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.content-area ul,
.content-area ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.content-area ul {
    list-style: disc;
}

.content-area ol {
    list-style: decimal;
}

.content-area li {
    margin-bottom: 0.375rem;
}

.content-area a {
    color: #ea580c;
    text-decoration: underline;
}

.content-area strong {
    color: #111827;
}

/* Defensive reset: nav menus should never show default bullet markers,
   even if a future menu location's items_wrap forgets list-style: none */
header nav ul,
footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hide scrollbar on the horizontal category strip while keeping it scrollable */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Pagination - targets WordPress's real paginate_links() markup (.page-numbers),
   not a custom class, since that's what type='list' actually outputs */
.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.page-numbers li {
    display: inline-flex;
}

a.page-numbers,
span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

a.page-numbers:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border-color: rgba(249, 115, 22, 0.3);
}

span.page-numbers.current {
    background: #f97316;
    color: white;
    border-color: #f97316;
    font-weight: 600;
}

.page-numbers.dots {
    background: transparent;
    border: none;
    color: #94a3b8;
}
