/*
Theme Name: SimHaven City Portal
Theme URI: https://playsimhaven.com
Author: SimHaven
Description: A classic Sims Online-inspired blog and city portal theme for SimHaven.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: simhaven-city-portal
*/

:root {
    --sh-navy: #0b2742;
    --sh-navy-2: #123f67;
    --sh-blue-dark: #174f80;
    --sh-blue: #2b76ad;
    --sh-blue-light: #62a8d6;
    --sh-cyan: #21aee9;
    --sh-green: #38b52b;
    --sh-green-dark: #1f8f18;
    --sh-panel: #ffffff;
    --sh-paper: #f4f4f1;
    --sh-border: #b7c5cf;
    --sh-text: #25303b;
    --sh-muted: #6d7984;
    --sh-shadow: rgba(31, 55, 74, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #9aa0a0;
    background-image: url("assets/img/city-bg-1920.jpg");
    background-image: image-set(
        url("assets/img/city-bg-1920.jpg") 1x,
        url("assets/img/city-bg-3840.jpg") 2x
    );
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--sh-text);
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(216, 226, 228, 0.24), rgba(154, 164, 164, 0.30) 360px, rgba(82, 91, 90, 0.38));
}

a {
    color: #168dc8;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #0b6098;
    text-decoration: underline;
}

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

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background:
        linear-gradient(180deg, rgba(33, 96, 142, 0.95), rgba(12, 43, 72, 0.98) 62%, rgba(7, 30, 51, 0.98));
    border-bottom: 1px solid #061e34;
    box-shadow: 0 4px 18px rgba(6, 21, 35, 0.34);
    color: #e9f6ff;
}

.site-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    min-width: 220px;
}

.site-logo img {
    width: 218px;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.36));
}

.site-title-fallback {
    margin: 0;
    font-size: 36px;
    color: var(--sh-blue-dark);
}

.site-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 10px 13px;
    border: 1px solid rgba(121, 188, 229, 0.28);
    border-radius: 3px;
    color: #eaf7ff;
    background: rgba(3, 24, 43, 0.22);
    font-weight: 700;
    font-size: 13px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    background: linear-gradient(#2a85c4, #155783);
    border-color: rgba(180, 228, 255, 0.62);
    color: #fff;
    text-decoration: none;
}

.affiliation-note {
    color: #d9f3ff;
    font-size: 11px;
    text-align: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, #d9f2ff, #a8d4ee);
    color: #12537d;
    border-top: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(39, 91, 124, 0.6);
    font-weight: 700;
}

.hero {
    position: relative;
    margin: 28px auto 28px;
    min-height: 330px;
    border: 1px solid #5d87a8;
    background: #25303b url("assets/img/hero-tree.jpg") center right / cover no-repeat;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--sh-shadow), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 32, 55, 0.45), rgba(255,255,255,0.02) 46%, rgba(10, 39, 65, 0.18));
}

.hero-card {
    position: absolute;
    left: 32px;
    bottom: 32px;
    width: min(500px, calc(100% - 64px));
    padding: 24px 28px;
    background: rgba(245, 251, 255, 0.96);
    border: 1px solid #5f94bd;
    border-left: 5px solid #1f6fa9;
    border-radius: 6px;
    box-shadow: 0 6px 0 rgba(15, 53, 82, 0.24), 0 18px 34px rgba(10, 28, 45, 0.22);
}

.hero-card h1 {
    margin: 0 0 8px;
    color: #145f96;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-card p {
    margin: 0 0 16px;
    color: #4e5b66;
    font-size: 15px;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 18px;
    border: 1px solid #1e8f18;
    background: linear-gradient(#5fd542, #25a51c);
    box-shadow: inset 0 1px rgba(255,255,255,0.45), 0 3px 0 #187411;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 1px rgba(0,0,0,0.25);
}

.sh-button:hover {
    background: linear-gradient(#70e054, #2bb520);
    color: #fff;
    text-decoration: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.main-column,
.sidebar-column {
    min-width: 0;
}

.article-card,
.page-card,
.widget-panel,
.comment-respond,
.comments-area {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #b5c8d7;
    box-shadow: 0 4px 0 rgba(36, 69, 94, 0.08), 0 12px 26px rgba(24, 45, 61, 0.08);
}

.article-card,
.page-card {
    padding: 28px 32px;
    margin-bottom: 24px;
}

.article-card h2,
.page-card h1,
.single-title {
    margin: 0 0 8px;
    color: #2a3e50;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: 0;
}

.article-card h2 a {
    color: #2a3e50;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    color: #7e8790;
    font-size: 12px;
}

.entry-meta span:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #b8c4cc;
}

.post-thumbnail {
    margin: 16px 0 20px;
    border: 1px solid #d3dbe1;
    background: #edf2f5;
}

.post-thumbnail img {
    display: block;
    width: 100%;
}

.read-more {
    font-weight: 800;
}

.widget-panel {
    margin-bottom: 18px;
}

.city-status-widget {
    border-color: #8ebad7;
    box-shadow: 0 4px 0 rgba(21, 83, 124, 0.18), 0 12px 28px rgba(24, 45, 61, 0.12);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin: 0;
    padding: 6px 10px;
    border-bottom: 1px solid #0c3455;
    background: linear-gradient(#3d8ec8, #1f659b 52%, #123f67);
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
    text-shadow: 0 1px rgba(0,0,0,0.35);
}

.widget-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    display: inline-block;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #7fdcff 20% 42%, #1f87c9 44% 100%);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 0 0 1px rgba(10, 56, 92, 0.6), 0 0 8px rgba(111, 216, 255, 0.38);
}

.widget-content {
    padding: 12px;
}

.status-row,
.job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #edf0f2;
}

.status-row-online .status-value {
    font-size: 18px;
    font-weight: 900;
    color: #154b72;
}

.status-row:last-child,
.job-row:last-child {
    border-bottom: 0;
}

.status-label {
    font-weight: 800;
    color: #44515c;
}

.status-value {
    color: #222;
    text-align: right;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    background: #aeb7bd;
    border: 1px solid #7e8a91;
    vertical-align: -1px;
}

.status-dot.is-online {
    background: #38c457;
    border-color: #1f9238;
}

.job-select {
    width: 100%;
    margin: 8px 0 6px;
    padding: 6px 8px;
    border: 1px solid #aab7c1;
    border-radius: 3px;
    background: #fff;
    font: inherit;
}

.mini-link {
    font-size: 12px;
    font-weight: 700;
}

.recent-posts-list,
.popular-lots-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li,
.popular-lots-list li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #edf0f2;
}

.recent-posts-list li:last-child,
.popular-lots-list li:last-child {
    border-bottom: 0;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form label {
    flex: 1;
}

.search-field,
.search-submit,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
    border: 1px solid #aeb9c2;
    border-radius: 3px;
    padding: 8px 9px;
    font: inherit;
}

.search-field {
    width: 100%;
}

.search-submit {
    color: #fff;
    background: linear-gradient(#3e86ba, #216598);
    border-color: #174f80;
    font-weight: 800;
    cursor: pointer;
}

.download-page-card {
    padding: 0;
    overflow: hidden;
}

.download-header {
    padding: 30px 34px;
    color: #eef9ff;
    background:
        linear-gradient(180deg, rgba(38, 116, 170, 0.96), rgba(18, 67, 106, 0.98)),
        url("assets/img/city-bg-1920.jpg") center 35% / cover no-repeat;
    border-bottom: 1px solid #0c3455;
    box-shadow: inset 0 1px rgba(255,255,255,0.18);
}

.download-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #bdeeff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-header h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 34px;
    line-height: 1.08;
    text-shadow: 0 2px rgba(0,0,0,0.26);
}

.download-header p {
    max-width: 640px;
    margin: 0;
    color: #d8eef9;
    font-size: 15px;
}

.download-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 28px;
    padding: 20px 22px;
    border: 1px solid #aac7dc;
    border-left: 5px solid #1f77b1;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #eef8fd);
    box-shadow: 0 4px 0 rgba(36, 69, 94, 0.08);
}

.download-action-panel h2 {
    margin: 0 0 4px;
    color: #164d78;
    font-size: 22px;
}

.download-version {
    margin: 0;
    color: #60717e;
    font-weight: 700;
}

.download-primary-button {
    min-width: 190px;
    min-height: 44px;
    border-radius: 22px;
}

.download-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 28px 24px;
    border: 1px solid #d3dee6;
    background: #fff;
}

.download-details div {
    padding: 14px 16px;
    border-right: 1px solid #e2e9ee;
    border-bottom: 1px solid #e2e9ee;
}

.download-details div:nth-child(3n) {
    border-right: 0;
}

.download-details dt {
    margin: 0 0 3px;
    color: #60717e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.download-details dd {
    margin: 0;
    color: #1f2e3a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.download-checksum-row {
    grid-column: 1 / -1;
    border-right: 0;
}

.download-checksum-row code {
    display: block;
    padding: 8px;
    background: #edf6fb;
    border: 1px solid #d4e5ef;
    color: #15364f;
    font-size: 12px;
    white-space: normal;
}

.download-warning {
    margin: 0 28px 24px;
    padding: 12px 14px;
    border: 1px solid #d7b65a;
    background: #fff6d8;
    color: #6d540c;
    font-weight: 700;
}

.download-notes {
    margin: 0 28px 30px;
    padding: 18px 20px;
    border: 1px solid #c9d8e3;
    background: rgba(244, 250, 253, 0.92);
}

.download-notes h2 {
    margin: 0 0 10px;
    color: #164d78;
    font-size: 20px;
}

.download-notes ul {
    margin: 0;
    padding-left: 20px;
}

.download-smartscreen-note {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #b8cee0;
    border-left: 5px solid #2b76ad;
    background: #ffffff;
    box-shadow: 0 3px 0 rgba(36, 69, 94, 0.06);
}

.download-smartscreen-note h3 {
    margin: 0 0 6px;
    color: #164d78;
    font-size: 16px;
}

.download-smartscreen-note p {
    margin: 0;
    color: #344656;
}

.rules-page-card h1 {
    color: #164d78;
}

.rules-content {
    max-width: 760px;
}

.rules-content h2 {
    margin: 28px 0 10px;
    padding: 0 0 7px;
    border-bottom: 1px solid #d6e2eb;
    color: #164d78;
    font-size: 21px;
    line-height: 1.2;
}

.rules-content p {
    margin: 0 0 13px;
}

.rules-content h2:first-of-type {
    margin-top: 24px;
}

.widget_search,
.widget_recent_entries,
.widget_recent_comments {
    display: none;
}

.pagination {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ccd4db;
    font-weight: 800;
}

.site-footer {
    padding: 28px 0 32px;
    border-top: 2px solid #56a7da;
    background:
        linear-gradient(180deg, rgba(25, 78, 117, 0.98), rgba(9, 32, 54, 0.98));
    color: #d7eaf6;
    font-size: 12px;
    text-align: left;
    box-shadow: inset 0 1px rgba(255,255,255,0.14);
}

.site-footer .site-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    margin: 4px 0;
}

.footer-copy {
    max-width: 760px;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    text-align: right;
}

.footer-nav a {
    color: #c3ecff;
    font-weight: 700;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .site-nav a {
        padding: 8px 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .widget-panel {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 20px, 1180px);
    }

    .site-logo img {
        width: 180px;
    }

    .hero {
        min-height: 390px;
        background-position: 62% center;
    }

    .hero-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
        padding: 18px;
    }

    .article-card,
    .page-card {
        padding: 22px 18px;
    }

    .download-page-card {
        padding: 0;
    }

    .download-header,
    .download-action-panel,
    .download-details,
    .download-warning,
    .download-notes {
        margin-left: 18px;
        margin-right: 18px;
    }

    .download-header {
        margin: 0;
        padding: 24px 20px;
    }

    .download-action-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .download-primary-button {
        width: 100%;
    }

    .download-details {
        grid-template-columns: 1fr;
    }

    .download-details div {
        border-right: 0;
    }

    .sidebar-column {
        grid-template-columns: 1fr;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .site-shell {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav {
        justify-content: center;
        text-align: center;
    }

    body {
        background-attachment: scroll;
        background-size: auto 100vh;
    }
}
