/*
Theme Name: Patrick's Endor Base...ment
Theme URI: https://example.com
Author: Patrick
Description: A custom theme for Star Wars collecting, cosplay, and prop build content — built for reviews, build guides, and charity cosplay features.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: endor-basement
*/

/* ---------- Reset & base ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f4f1ea;
    color: #2c2a26;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background-color: #1f2a24;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #f4f1ea;
    border-bottom: 3px solid #b5732a;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 17, 0.55);
    pointer-events: none;
}

.site-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: #f4f1ea;
    letter-spacing: 0.02em;
}

.site-title:hover {
    text-decoration: none;
    color: #d99a4e;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 14px;
    color: #e8e3d8;
}

.main-nav a:hover {
    color: #d99a4e;
    text-decoration: none;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(244, 241, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfc9ba;
}

.social-links a:hover {
    background: #b5732a;
    color: #fff;
    text-decoration: none;
}

.social-links .dashicons { display: none; }
.social-links svg {
    width: 16px;
    height: 16px;
}

.links-hub-button {
    display: inline-block;
    margin: 4px 0 16px;
    padding: 8px 20px;
    border: 1px solid #b5732a;
    border-radius: 999px;
    color: #d99a4e;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.links-hub-button:hover {
    background: #b5732a;
    color: #fff;
    text-decoration: none;
}

/* ---------- Links page ---------- */
.link-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #918d80;
    margin: 32px 0 12px;
}

.link-section-title:first-child {
    margin-top: 0;
}

.link-btn {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e4dfd1;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    max-width: 480px;
}

.link-btn:hover {
    border-color: #b5732a;
    background: #fdf1e0;
    text-decoration: none;
}

.link-btn-text {
    font-size: 15px;
    font-weight: 600;
    color: #2c2a26;
}

.link-btn-subtext {
    font-size: 12px;
    color: #7a766a;
    margin-top: 2px;
}

.footer-legal-links {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-legal-links a {
    font-size: 12px;
    color: #918d80;
}

.footer-legal-links a:hover {
    color: #d99a4e;
}

.header-social-links {
    display: flex;
    gap: 10px;
}

.header-social-links a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(244, 241, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e3d8;
}

.header-social-links a:hover {
    background: #b5732a;
    color: #fff;
    text-decoration: none;
}

.header-social-links svg {
    width: 15px;
    height: 15px;
}

.sidebar-social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sidebar-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f1ea;
    border: 1px solid #e4dfd1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4636;
}

.sidebar-social-links a:hover {
    background: #b5732a;
    border-color: #b5732a;
    color: #fff;
    text-decoration: none;
}

.sidebar-social-links svg {
    width: 17px;
    height: 17px;
}

/* ---------- Media kit page ---------- */
.media-kit {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px;
}

.mk-header {
    text-align: center;
    margin-bottom: 30px;
}

.mk-header img {
    max-height: 70px;
    margin: 0 auto 10px;
}

.mk-header h1 {
    font-size: 30px;
    margin: 0 0 4px;
}

.mk-name {
    font-size: 16px;
    color: #6b6656;
    margin: 0 0 6px;
}

.mk-contact a {
    color: #b5732a;
    font-size: 14px;
}

.media-kit .card h2 {
    font-size: 18px;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4a4636;
}

.media-kit .card p,
.media-kit .card li {
    font-size: 15px;
    color: #3d3a30;
}

.mk-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.mk-stat {
    background: #f4f1ea;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mk-platform {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #918d80;
}

.mk-number {
    font-size: 26px;
    font-weight: 700;
    color: #b5732a;
}

.mk-label {
    font-size: 12px;
    color: #7a766a;
}

.mk-sub {
    font-size: 11px;
    color: #a19d8e;
    margin-top: 4px;
}

.mk-demo-list,
.mk-highlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-demo-list li,
.mk-highlight-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0ece0;
    line-height: 1.5;
}

.mk-demo-list li:last-child,
.mk-highlight-list li:last-child {
    border-bottom: none;
}

.mk-contact-card {
    text-align: center;
    background: #fdf1e0;
    border-color: #b5732a;
}

/* ---------- Deal / discount callout ---------- */
.deal-callout {
    background: #fdf1e0;
    border: 2px solid #b5732a;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.deal-text {
    color: #4a3010;
    font-weight: 600;
}

.deal-code {
    background: #b5732a;
    color: #fff;
    font-family: "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 15px;
}

.deal-callout-link {
    display: block;
    text-decoration: none;
}

.deal-callout-link:hover .deal-callout {
    border-color: #9c5f1f;
    background: #fbe8cc;
    text-decoration: none;
}

/* ---------- Layout ---------- */
.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0;
}

@media (max-width: 780px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }
}

/* ---------- Cards ---------- */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4dfd1;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-review { background: #dcecdf; color: #1e4a2b; }
.badge-build { background: #f3ded0; color: #6b3a15; }
.badge-collection { background: #e4e0f5; color: #382c6e; }
.badge-charity { background: #fbe1ea; color: #6e2140; }

/* ---------- Hero (front page) ---------- */
.hero-post {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4dfd1;
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-post img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.hero-post .hero-body {
    padding: 20px 24px 24px;
}

.hero-post h2 {
    font-size: 26px;
    margin: 10px 0 8px;
}

.hero-post p {
    color: #55524a;
    margin: 0 0 10px;
}

.meta {
    font-size: 12px;
    color: #918d80;
}

/* ---------- Post grid ---------- */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.post-grid .card h3 {
    font-size: 16px;
    margin: 10px 0 6px;
}

.post-grid .card p {
    font-size: 13px;
    color: #7a766a;
    margin: 0;
}

.post-thumb {
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

/* ---------- Sidebar ---------- */
.sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4dfd1;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.sidebar .widget h3 {
    font-size: 14px;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b6656;
}

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

.sidebar li {
    padding: 6px 0;
    border-bottom: 1px solid #f0ece0;
    font-size: 14px;
}

.sidebar li:last-child {
    border-bottom: none;
}

.ad-slot {
    border: 1px dashed #cfc9b8;
    border-radius: 10px;
    text-align: center;
    padding: 40px 10px;
    color: #9c977f;
    font-size: 12px;
    background: #faf8f2;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 8px;
    border: 1px solid #d8d3c2;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background: #b5732a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #9c5f1f;
}

/* ---------- Single post ---------- */
.single-post .entry-header h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.single-post .entry-content {
    font-size: 17px;
    margin-top: 20px;
}

.single-post .entry-content p {
    margin-bottom: 1.2em;
}

.single-post .entry-content img {
    border-radius: 10px;
    margin: 20px 0;
}

.in-content-ad {
    margin: 30px 0;
}

/* ---------- Archive / blog index ---------- */
.archive-list .card {
    display: flex;
    gap: 16px;
}

.archive-list .card img {
    width: 160px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1f2a24;
    color: #cfc9ba;
    padding: 30px 0;
    font-size: 13px;
    text-align: center;
}

.site-footer a {
    color: #d99a4e;
}

/* ---------- Pagination ---------- */
.pagination {
    margin-top: 20px;
    font-size: 14px;
}

.pagination a, .pagination span {
    margin-right: 10px;
}
