/*
Theme Name: LazyApe
Theme URI: https://lazyape.net
Author: David Clatfelter
Description: Slashdot-inspired WordPress theme. Dark background, white content cards, authentic Slashdot teal (#005353).
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lazyape
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,800;1,800&display=swap');

/* =========================================================
   TOKENS
   ========================================================= */
:root {
    --teal:          #005353;
    --teal-light:    #007a7a;
    --teal-dark:     #003838;
    --teal-faint:    #e6f2f2;

    --bg:            #0d0d0d;
    --card:          #ffffff;
    --card-alt:      #f7f9f9;

    --text:          #1a1a1a;
    --text-muted:    #555555;
    --text-on-teal:  #ffffff;

    --border:        #d4e0e0;
    --shadow:        0 2px 12px rgba(0, 0, 0, 0.45);
    --shadow-hover:  0 6px 24px rgba(0, 0, 0, 0.6);

    --radius:        10px;
    --radius-sm:     6px;

    --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "Bitstream Vera Sans Mono", "Consolas", "Courier New", Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--teal-light);
    text-decoration: underline;
}

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

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px 0 60px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    border-bottom: 3px solid var(--teal);
    padding: 24px 0 20px;
}

/* Flex row: icon on left, name+tagline on right */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lighter teal-tinted panel behind the name + tagline */
.site-name-wrap {
    background: rgba(0, 100, 100, 0.45);
    border: 1px solid rgba(0, 180, 180, 0.45);
    border-radius: 10px;
    padding: 12px 24px 10px;
}

.site-icon-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-icon-link:hover {
    opacity: 1;
    transform: scale(1.07) rotate(3deg);
}

.site-icon {
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
}

.site-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--teal-light);
    text-decoration: none;
}

.site-description {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #9cc;
    font-style: italic;
    margin-top: 5px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-navigation {
    background-color: var(--teal);
    border-bottom: 2px solid var(--teal-dark);
}

.main-navigation .container {
    display: flex;
    align-items: stretch;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: flex;
}

.main-navigation a {
    color: var(--text-on-teal);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: var(--teal-dark);
    color: #ffffff;
    text-decoration: none;
}

/* =========================================================
   POST CARDS
   ========================================================= */
.content-area {
    min-width: 0;
}

article.post {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

article.post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-header {
    background: var(--teal);
    padding: 16px 24px;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.35;
    color: var(--text-on-teal);
}

.post-title a {
    color: var(--text-on-teal);
    text-decoration: none;
}

.post-title a:hover {
    color: #b2dfdf;
    text-decoration: none;
}

/* Single post title (h1 in single.php) */
.post-header h1.post-title {
    font-size: 1.55rem;
    font-style: italic;
    color: #ffffff !important;
}

.post-meta {
    background: var(--teal-dark);
    padding: 7px 24px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #a0c8c8;
    letter-spacing: 0.02em;
}

.post-meta a {
    color: #c0e0e0;
}

.post-meta a:hover {
    color: #ffffff;
}

.post-content {
    padding: 24px 24px 20px;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.1em;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-mono);
    color: var(--teal-dark);
    margin: 1.5em 0 0.6em;
}

.post-content ul,
.post-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.1em;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content blockquote {
    border-left: 4px solid var(--teal);
    margin: 1.5em 0;
    padding: 12px 20px;
    background: var(--teal-faint);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #333;
    font-style: italic;
}

.post-content pre,
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--radius-sm);
}

.post-content code {
    padding: 2px 7px;
}

.post-content pre {
    padding: 18px 20px;
    overflow-x: auto;
    margin: 1.2em 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-footer {
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* =========================================================
   READ MORE BUTTON
   ========================================================= */
.button,
a.button {
    display: inline-block;
    background: var(--teal);
    color: #ffffff !important;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.1s ease;
    margin-top: 8px;
}

.button:hover,
a.button:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.navigation.pagination {
    margin: 8px 0 24px;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    box-shadow: var(--shadow);
    color: var(--teal);
}

.nav-links a:hover {
    background: var(--teal);
    color: #fff;
    text-decoration: none;
}

.nav-links .current {
    background: var(--teal);
    color: #fff;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
    min-width: 0;
}

.widget {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    margin-bottom: 24px;
    overflow: hidden;
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-on-teal);
    background: var(--teal);
    margin: -20px -22px 16px;
    padding: 10px 18px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.widget a {
    color: var(--teal);
}

.widget a:hover {
    color: var(--teal-light);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #111111;
    border-top: 3px solid var(--teal);
    color: #888;
    padding: 36px 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.site-footer .site-info {
    text-align: center;
    line-height: 2;
}

.site-footer a {
    color: var(--teal-light);
}

.site-footer a:hover {
    color: #ffffff;
}

/* =========================================================
   FORMS
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    background: #fff;
    color: var(--text);
    width: 100%;
    transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
}

/* =========================================================
   TABLES
   ========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

th {
    background: var(--teal);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}

tr:hover td {
    background: var(--teal-faint);
}

/* =========================================================
   SEARCH FORM
   ========================================================= */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-submit {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-submit:hover {
    background: var(--teal-light);
}

/* =========================================================
   SCREEN READER
   ========================================================= */
.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;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-title {
        font-size: 1.5rem;
    }

    .post-content {
        padding: 18px 18px 16px;
    }

    .post-header {
        padding: 14px 18px;
    }

    .post-meta {
        padding: 6px 18px;
    }
}
