/*
Theme Name: Hormuz Toll
Theme URI: https://hormuztoll.com/
Author: Hormuz Toll
Author URI: https://hormuztoll.com/
Description: Custom WordPress theme for the Strait of Hormuz News and Views site. Matches the dark navy/blue theme of the Hormuz Toll Calculator.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hormuztoll
Tags: dark, custom-menu, two-columns, right-sidebar, custom-colors
*/

:root {
    --bg: #0b1220;
    --panel: #121a2c;
    --panel-2: #17223a;
    --text: #e8eefc;
    --muted: #9cb0d8;
    --accent: #67b7ff;
    --ok: #6ee7b7;
    --warn: #fbbf24;
    --danger: #fca5a5;
    --border: #284062;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #09111d 0%, #0b1220 100%);
    color: var(--text);
    min-height: 100vh;
}
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; color: var(--text); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 12px; }
blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: #0d1526;
    border-radius: 0 12px 12px 0;
    color: var(--muted);
    font-style: italic;
}
code, pre {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}
code {
    background: #0d1526;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}
pre {
    background: #0d1526;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow-x: auto;
}
pre code { background: none; padding: 0; color: var(--text); }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
ul, ol { color: var(--muted); line-height: 1.7; padding-left: 22px; }

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: rgba(18, 26, 44, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    flex-wrap: wrap;
}
.nav a {
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--accent);
}
.nav a:hover { background: rgba(103, 183, 255, 0.1); text-decoration: none; }
.nav a.active {
    background: rgba(103, 183, 255, 0.15);
    color: #fff;
    font-weight: 600;
}
.nav-brand {
    font-weight: 700;
    color: var(--text);
    margin-right: 12px;
    font-size: 15px;
}
.nav-sep { color: var(--border); }

/* Layout grid */
.layout {
    display: grid;
    grid-template-columns: 1fr 0.35fr;
    gap: 22px;
}

/* Cards */
.card {
    background: rgba(18, 26, 44, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.card + .card { margin-top: 18px; }
.section-title {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* Hero */
.hero {
    margin-bottom: 24px;
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(103, 183, 255, 0.12);
    border: 1px solid rgba(103, 183, 255, 0.30);
    color: #cfe5ff;
    font-size: 13px;
}

/* Info items */
.info-item {
    background: #0d1526;
    border: 1px solid #243754;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.info-item strong { color: var(--text); }
.info-item p { margin: 6px 0 0; }
.info-item a { color: var(--accent); }

/* Buttons */
.btn-primary {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: #06101d;
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }
.secondary {
    background: #1d2a44;
    color: #d6e3ff;
    border: 1px solid #35507d;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}
.secondary:hover { text-decoration: none; background: #243350; }

/* Post listing */
.post-card {
    background: rgba(18, 26, 44, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: transform 0.2s, border-color 0.2s;
}
.post-card:hover {
    border-color: rgba(103, 183, 255, 0.4);
}
.post-card .post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}
.post-card .post-title a {
    color: var(--text);
    text-decoration: none;
}
.post-card .post-title a:hover { color: var(--accent); }
.post-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.post-meta a { color: var(--accent); }
.post-excerpt {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}
.read-more:hover { text-decoration: none; gap: 10px; }

/* Single post */
.single-post .post-title {
    font-size: 32px;
    margin-bottom: 12px;
}
.single-post .post-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}
.single-post .post-content p {
    color: var(--text);
    margin: 0 0 16px;
}
.single-post .post-content h2 { margin-top: 28px; color: var(--text); }
.single-post .post-content h3 { margin-top: 22px; color: var(--accent); }
.single-post .post-content a { color: var(--accent); }
.single-post .post-content img { margin: 16px 0; }
.single-post .post-content ul,
.single-post .post-content ol { color: var(--text); }

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a, .pagination .current {
    padding: 8px 14px;
    border-radius: 10px;
    background: #1d2a44;
    color: var(--text);
    border: 1px solid #35507d;
    font-size: 14px;
    text-decoration: none;
}
.pagination a:hover { background: #243350; text-decoration: none; }
.pagination .current {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: #06101d;
    border: none;
}

/* Comments */
.comments-area {
    margin-top: 24px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list li {
    background: #0d1526;
    border: 1px solid #243754;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
}
.comment-author { font-weight: 600; color: var(--text); }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-content p { color: var(--muted); margin: 0; }

#respond {
    background: #0d1526;
    border: 1px solid #243754;
    border-radius: 12px;
    padding: 18px;
    margin-top: 18px;
}
#respond h3 { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
#respond label { display: block; font-size: 13px; color: #c9d7f2; margin-bottom: 6px; }
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    background: #0b1220;
    color: #eff5ff;
    border: 1px solid #2a446d;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
}
#respond textarea { min-height: 100px; resize: vertical; }
#respond input[type="submit"],
.btn-submit {
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: #06101d;
}

/* Search form */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.search-form input[type="search"] {
    flex: 1;
    background: #0d1526;
    color: #eff5ff;
    border: 1px solid #2a446d;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form button {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: #06101d;
    font-size: 14px;
}

/* Tags & categories */
.tag-list, .category-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.tag-list a, .category-list a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(103, 183, 255, 0.10);
    border: 1px solid rgba(103, 183, 255, 0.25);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
}
.tag-list a:hover, .category-list a:hover {
    background: rgba(103, 183, 255, 0.20);
    text-decoration: none;
}

/* Footer */
.footer-note {
    margin-top: 28px;
    font-size: 12px;
    color: #94a8d0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.muted { color: var(--muted); }

/* WordPress required classes */
.alignleft { float: left; margin: 6px 16px 6px 0; }
.alignright { float: right; margin: 6px 0 6px 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.sticky { /* sticky posts */ }
.gallery-caption { font-size: 12px; color: var(--muted); }
.bypostauthor { /* by post author */ }

@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; }
    h1 { font-size: 26px; }
    .single-post .post-title { font-size: 26px; }
    .post-card .post-title { font-size: 18px; }
}

@media print {
    body { background: #fff !important; color: #111 !important; }
    .wrap { max-width: 100%; padding: 12px; }
    .layout { display: block; }
    .card, .post-card { background: #fff !important; border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
    .nav, .pagination, #respond, .search-form { display: none !important; }
    .section-title { color: #333 !important; }
    p, .muted, .post-meta, .post-excerpt { color: #555 !important; }
    a { color: #06f !important; }
}
