/* Custom styles for SCOBY.pl */

/* Hide publication dates - makes content feel more like a knowledge base, less like a blog */

/* Primary selectors - hide time elements */
time,
time[datetime],
time[pubdate] {
    display: none !important;
    visibility: hidden !important;
    font-size: 0 !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
}

/* Hide parent elements */
.post-meta,
.entry-meta,
.article-meta,
.meta {
    display: none !important;
}

/* Hide italics containing time elements specifically */
i:has(> time) {
    display: none !important;
}

/* Fallback for browsers without :has() support */
@supports not (selector(i:has(> time))) {
    /* List pages - hide date info near titles */
    .posts article > span,
    .post-list article > span,
    article > div > span:first-child {
        display: none !important;
    }
}

/* Schema.org metadata */
[itemprop="datePublished"],
[itemprop="dateModified"] {
    display: none !important;
}

/* Optional: Hide author info if displayed */
.author,
.post-author,
.entry-author,
[itemprop="author"] {
    display: none !important;
}

/* Make article titles more prominent */
article h1,
.post-title,
.entry-title {
    margin-bottom: 1rem;
}

/* === TYPOGRAPHY IMPROVEMENTS === */

/* Better font stack */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    color: #111827;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; border-bottom: 2px solid #e5e7eb; padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }

/* Better paragraph spacing */
p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Better list styling */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Better link styling */
a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-bottom-color: #2563eb;
}

/* Better code blocks */
code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #dc2626;
}

pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Better tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

/* Better article spacing */
article {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Better header spacing */
header {
    padding: 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

nav {
    margin-bottom: 1.5rem;
}

nav a {
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
}

nav a.current,
nav a:hover {
    border-bottom-color: #2563eb;
}

/* Better main content spacing */
main {
    min-height: calc(100vh - 300px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    article {
        padding: 1rem 0.5rem;
    }

    /* Logo smaller on mobile */
    .site-logo {
        font-size: 1.5rem !important;
    }

    /* Header more compact */
    header {
        padding: 1.5rem 1rem !important;
    }

    /* Navigation stacked */
    nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        display: block;
        padding: 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
    }

    /* Tables scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Code blocks better on mobile */
    pre {
        font-size: 0.85rem;
        padding: 1rem;
    }

    /* Product boxes full width */
    div[style*="linear-gradient(135deg, #f5f7fa"] {
        margin: 1.5rem 0;
        padding: 1rem;
    }
}
