/* PMT Professional Academic Style - Redesign 2026 */
:root {
    --primary: #003366;
    /* Oxford Blue */
    --accent: #2c3e50;
    --link: #0066cc;
    --gray-bg: #f8f9fa;
    --border: #e1e4e8;
    --text: #333;
    --sidebar-w: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.pmt-theme {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: var(--text);
    line-height: 1.6;
}

/* Header & Search */
.top-announcement {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pmt-nav {
    background-color: #fff;
    border-bottom: 2px solid var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmt-nav .logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.search-bar-container {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 40px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--gray-bg);
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.nav-main a {
    color: var(--text);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 600;
}

.nav-main a:hover {
    color: var(--link);
}

/* Layout */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sidebar-list {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar-list li {
    padding: 8px 0;
}

.sidebar-list a {
    color: var(--link);
    text-decoration: none;
    font-size: 15px;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

/* Content */
.page-header h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin: 40px 0 20px;
}

/* Subject Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.resource-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.resource-card a {
    color: var(--link);
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

/* Blog/News */
.blog-snippet {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--border);
}

.blog-date {
    background: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    height: fit-content;
}

.blog-content h4 {
    margin-bottom: 5px;
}

.blog-content p {
    font-size: 14px;
    color: #666;
}

/* Footer */
.pmt-footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

/* SPA Support */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

#view-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 1000;
}

/* HUD & Overlays */
.hud {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1020;
}

.hud button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}