/*
Theme Name: Tims Maps And Mods
Author: Tim Dawson
Description: Dark RTS-style WordPress theme for classic editor.
Version: 1.2
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0e0e0e;
    color: #ddd;
    font-family: Arial, Helvetica, sans-serif;
}

/* Links */
a {
    color: #6fb3ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Layout */
.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.site-header {
    background: linear-gradient(#111, #0b0b0b);
    border-bottom: 1px solid #222;
    padding: 30px 20px;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.site-title a {
    color: #fff;
}

/* Navigation */
.main-nav {
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav a {
    color: #ccc;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #fff;
}

.current-menu-item a {
    color: #fff;
    border-bottom: 2px solid #6fb3ff;
}

/* Content */
.content {
    margin-top: 40px;
}

.post {
    margin-bottom: 60px;
}

.post h1,
.post h2,
.post h3 {
    color: #fff;
}

.post p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Download section */
.download-box {
    background: #121212;
    border: 1px solid #222;
    padding: 20px;
    margin: 30px 0;
}

.download-box h3 {
    margin-top: 0;
}

.download-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #6fb3ff;
    color: #000;
    font-weight: bold;
}

.download-button:hover {
    background: #89c4ff;
}

/* Screenshot gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.screenshot-gallery img {
    width: 100%;
    border: 1px solid #222;
}

/* Changelog */
.changelog {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
}

.changelog strong {
    display: block;
    margin-top: 15px;
    color: #6fb3ff;
}

/* Footer */
.site-footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 25px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* Contact Page */
.contact-page ul {
    margin-left: 20px;
    line-height: 1.6;
}

.contact-form {
    margin-top: 30px;
    max-width: 600px;
}

.form-field {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    background: #121212;
    border: 1px solid #222;
    color: #ddd;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6fb3ff;
}

.submit-button {
    margin-top: 10px;
    padding: 12px 20px;
    background: #6fb3ff;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.submit-button:hover {
    background: #89c4ff;
}

.form-success {
    background: #0f2a16;
    border: 1px solid #1f5f32;
    color: #a8ffbf;
    padding: 15px;
    margin: 20px 0;
}

.form-error {
    background: #2a0f0f;
    border: 1px solid #5f1f1f;
    color: #ffb3b3;
    padding: 15px;
    margin: 20px 0;
}

.contact-footer {
    margin-top: 40px;
    font-style: italic;
    color: #aaa;
}

.contact-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.contact-intro hr {
    border: none;
    border-top: 1px solid #222;
    margin: 25px 0;
}

.contact-intro h3 {
    color: #fff;
    margin-top: 10px;
}

.contact-intro ul {
    margin-left: 20px;
    line-height: 1.6;
}

/* Honeypot spam protection */
.hp-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.map-entry {
    display: flex;
    gap: 25px;
    margin: 30px 0;
}

.map-thumb img {
    max-width: 260px;
    border: 1px solid #222;
}

.map-info h3 {
    margin-top: 0;
}

.map-link {
    font-weight: bold;
}

.map-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.map-thumb img {
    border-radius: 6px;
}

.map-screenshots {
    margin-top: 10px;
}

.map-shot {
    display: inline-block;
    margin-right: 6px;
}

.map-shot img {
    border-radius: 4px;
}

.map-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.map-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* =====================================================
   SUBMIT MAP – PROFESSIONAL FORM STYLING
   ===================================================== */

.tmam-form {
    max-width: 820px;
    margin: 2.5rem auto 4rem auto;
    display: block;
}

/* Optional card-style container */
.tmam-form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 2.5rem 2.75rem;
}

/* Form groups */
.tmam-form .form-group {
    margin-bottom: 1.75rem;
}

/* Labels */
.tmam-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Required star */
.tmam-form label span {
    color: #e04f5f;
}

/* Inputs / selects / textareas */
.tmam-form input[type="text"],
.tmam-form input[type="number"],
.tmam-form select,
.tmam-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.95rem;
}

/* Large textarea comfort */
.tmam-form textarea {
    line-height: 1.55;
    resize: vertical;
}

/* Expanded game selector comfort */
.tmam-form select[size] {
    padding: 0.4rem;
    background: rgba(0,0,0,0.35);
}

/* File input spacing */
.tmam-form input[type="file"] {
    margin-top: 0.4rem;
}

/* Actions */
.tmam-form .form-actions {
    margin-top: 2.5rem;
    text-align: right;
}

/* Submit button */
.tmam-form .btn-primary,
.tmam-form button[type="submit"] {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #4fa3ff, #357ae8);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tmam-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79,163,255,0.35);
}

/* Feedback messages */
.form-error,
.form-success {
    max-width: 820px;
    margin: 1.5rem auto;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-error {
    background: rgba(224,79,95,0.15);
    border: 1px solid rgba(224,79,95,0.4);
}

.form-success {
    background: rgba(64,180,120,0.15);
    border: 1px solid rgba(64,180,120,0.4);
}

/* Page intro spacing */
.page-intro {
    max-width: 820px;
    margin: 0 auto 2.2rem auto;
    opacity: 0.9;
}

/* === TMAM GALLERY === */
.tmam-gallery {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.tmam-gallery.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tmam-gallery.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tmam-gallery.grid-4 { grid-template-columns: repeat(4, 1fr); }
.tmam-gallery.grid-5 { grid-template-columns: repeat(5, 1fr); }

.tmam-gallery img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tmam-gallery img:hover {
    transform: scale(1.03);
}

/* === LIGHTBOX === */
#tmam-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#tmam-lightbox img {
    max-width: 90%;
    max-height: 90%;
}

#tmam-lightbox .tmam-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}