/* KU711 Casino News Monitor - Main Stylesheet */
/* Typography: Playfair Display for headings, Inter for body */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink-primary: #000000;
    --ink-secondary: #1f2937;
    --accent-link: #2563eb;
    --page-bg: #ffffff;
    --divider-rule: #e5e7eb;
    --text-muted: #6b7280;
    --surface-subtle: #f9fafb;
    --alert-red: #dc2626;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Consolas', monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-secondary);
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink-primary);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--ink-primary);
    text-decoration: underline;
}

/* Site Masthead */
.masthead-wrapper {
    border-bottom: 1px solid var(--divider-rule);
    background: var(--page-bg);
}

.masthead-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1rem;
}

.masthead-brand {
    text-align: center;
    margin-bottom: 1rem;
}

.masthead-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.masthead-logo:hover {
    color: var(--ink-primary);
    text-decoration: none;
}

.masthead-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

.masthead-date {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider-rule);
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

.primary-nav a:hover {
    color: var(--ink-primary);
    text-decoration: none;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

/* Layout Containers */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.layout-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .layout-main {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1100px) {
    .layout-main {
        grid-template-columns: 2fr 280px;
    }
}

.content-primary {
    min-width: 0;
}

.content-sidebar {
    padding-top: 0;
}

/* Article Cards */
.news-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--divider-rule);
}

.news-card:first-child {
    padding-top: 0;
}

.news-card-featured {
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ink-primary);
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.news-card-category {
    color: var(--accent-link);
    font-weight: 600;
}

.news-card-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.news-card-title a {
    color: var(--ink-primary);
}

.news-card-title a:hover {
    color: var(--accent-link);
    text-decoration: none;
}

.news-card-featured .news-card-title {
    font-size: 2rem;
}

.news-card-excerpt {
    color: var(--ink-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.news-card-source {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-rule);
}

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

.sidebar-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ink-primary);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--divider-rule);
}

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

.sidebar-list a {
    color: var(--ink-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.sidebar-list a:hover {
    color: var(--accent-link);
}

.sidebar-date {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: var(--surface-subtle);
    border: 1px solid var(--divider-rule);
    border-radius: 2px;
    color: var(--ink-secondary);
}

.tag-pill:hover {
    background: var(--ink-primary);
    color: var(--page-bg);
    text-decoration: none;
}

/* Single Article Page */
.article-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-rule);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-category {
    color: var(--accent-link);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-headline {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-deck {
    font-size: 1.25rem;
    color: var(--ink-secondary);
    font-family: var(--font-heading);
    font-style: italic;
    line-height: 1.5;
}

.article-byline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-rule);
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--ink-primary);
    background: var(--surface-subtle);
    font-style: italic;
}

.article-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.article-body th, .article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--divider-rule);
}

.article-body th {
    font-weight: 600;
    background: var(--surface-subtle);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--ink-primary);
}

.related-articles h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--divider-rule);
}

.related-list a {
    color: var(--ink-primary);
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-nav {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* News Hub / Archive Page */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--ink-primary);
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1rem;
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--surface-subtle);
    border: 1px solid var(--divider-rule);
    color: var(--ink-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--ink-primary);
    color: var(--page-bg);
    border-color: var(--ink-primary);
}

/* Static Pages */
.static-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.static-page h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ink-primary);
}

.static-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-page ul, .static-page ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.static-page li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--divider-rule);
    background: var(--surface-subtle);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--ink-secondary);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--accent-link);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-rule);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Breaking News Banner */
.breaking-banner {
    background: var(--alert-red);
    color: var(--page-bg);
    padding: 0.75rem 1.5rem;
    text-align: center;
}

.breaking-label {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
}

.breaking-text {
    font-size: 0.9375rem;
}

.breaking-text a {
    color: var(--page-bg);
    text-decoration: underline;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .masthead-logo {
        font-size: 1.5rem;
    }

    .primary-nav {
        gap: 0.25rem 1rem;
    }

    .primary-nav a {
        font-size: 0.75rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .news-card-featured .news-card-title {
        font-size: 1.5rem;
    }

    .article-headline {
        font-size: 1.75rem;
    }

    .article-deck {
        font-size: 1.0625rem;
    }

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

@media (max-width: 480px) {
    .page-wrapper {
        padding: 1rem;
    }

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

    .primary-nav {
        justify-content: space-between;
    }
}

/* Print Styles */
@media print {
    .masthead-wrapper,
    .site-footer,
    .sidebar {
        display: none;
    }

    .article-wrapper {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: var(--ink-primary);
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
