/*
 * GamePress — Additional styles
 * Loaded after style.css
 */

/* Sticky header transition */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Pagination list fix (WordPress outputs <ul> wrapper) */
.pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

/* Search form styling */
.search-form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.search-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.search-submit:hover { background: var(--color-primary-dark); }

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--color-border);
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-body {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 6px; }
.comment-author .fn { font-weight: 700; color: var(--color-text); font-style: normal; }
.comment-content p { font-size: 0.92rem; margin-bottom: 0.5rem; }

/* Reply link */
.reply { margin-top: 6px; }
.reply .comment-reply-link {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

/* Comment form */
.comment-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    margin-bottom: 14px;
    background: var(--color-bg);
    color: var(--color-text);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .form-submit .submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 11px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form .form-submit .submit:hover { background: var(--color-primary-dark); }

/* WP alignments */
.alignleft  { float: left;  margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.alignwide  { margin-left: -40px; margin-right: -40px; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* WP caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-muted); text-align: center; margin-top: 6px; }

/* WP gallery */
.gallery { display: grid; gap: 6px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img   { width: 100%; height: 100%; object-fit: cover; }

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-header);
    color: #fff;
    font-weight: 700;
}

.entry-content tr:nth-child(even) td { background: var(--color-bg-alt); }

/* Code */
.entry-content code {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.88em;
    font-family: "Courier New", monospace;
}

.entry-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.88rem;
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 2px solid var(--color-border);
    margin: 2rem 0;
}

/* Footer nav list */
.footer-nav-list {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-nav-list a {
    color: #666;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-nav-list a:hover { color: #fff; }
