/*
Theme Name: Doorway IT GitHub Light
Template: twentytwentytwo
Description: Developer-focused light theme inspired by GitHub. Fira Code + Inter, clean white background, magazine-mixed card layout.
Author: Doorway
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doorway-it-github-light
*/

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

body { font-family: "Inter", system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #1F2328; background: #FFFFFF; }
h1, h2, h3 { font-family: "Fira Code", monospace; font-weight: 700; line-height: 1.2; color: #1F2328; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
a { color: #0969DA; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s; }
a:hover { color: #1A7F37; border-bottom-color: #1A7F37; }

/* ── Centered Hero ───────────────────────────────────────────── */
.devdaily-hero { background: #F6F8FA; padding: 4rem 2rem; text-align: center; border-bottom: 1px solid #D0D7DE; }
.devdaily-hero h1 { color: #0969DA; margin-bottom: 1rem; }
.devdaily-hero .wp-block-post-excerpt { color: #59636E; font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.devdaily-hero .code-preview {
  background: #FFFFFF; border: 1px solid #D0D7DE; border-radius: 6px;
  padding: 1.5rem; font-family: "Fira Code", monospace; font-size: 0.85rem;
  color: #CF222E; line-height: 1.8; overflow-x: auto; max-width: 600px; margin: 1.5rem auto 0;
  text-align: left;
}

/* ── Card Grid (magazine mixed) ──────────────────────────────── */
.devdaily-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.devdaily-grid .wp-block-post {
  background: #FFFFFF; border: 1px solid #D0D7DE; border-radius: 6px;
  overflow: hidden; transition: box-shadow 0.2s;
}
.devdaily-grid .wp-block-post:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.devdaily-grid .wp-block-post-featured-image { aspect-ratio: 16/9; overflow: hidden; }
.devdaily-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.devdaily-grid .wp-block-post-title { font-size: 0.95rem; padding: 1rem 1.25rem 0; font-family: "Fira Code", monospace; line-height: 1.4; }
.devdaily-grid .wp-block-post-title a { color: #1F2328; }
.devdaily-grid .wp-block-post-title a:hover { color: #0969DA; }
.devdaily-grid .wp-block-post-date { padding: 0.5rem 1.25rem 1rem; font-size: 0.75rem; color: #59636E; font-family: "Fira Code", monospace; }

/* ── Code blocks ─────────────────────────────────────────────── */
pre, code { font-family: "Fira Code", monospace; }
.wp-block-code { background: #F6F8FA; border: 1px solid #D0D7DE; border-radius: 6px; padding: 1.25rem; color: #1F2328; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #FFFFFF; border-bottom: 1px solid #D0D7DE; }
.site-header .wp-block-navigation a { color: #1F2328 !important; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.85rem; font-family: "Fira Code", monospace; }
.site-header .wp-block-navigation a:hover { color: #0969DA !important; }
.site-header .wp-block-site-title a { font-family: "Fira Code", monospace; font-size: 1.3rem; font-weight: 700; color: #0969DA !important; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #F6F8FA; border-top: 1px solid #D0D7DE; padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.85rem; color: #59636E; }
.site-footer a { color: #0969DA; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .devdaily-grid .wp-block-post-template { grid-template-columns: 1fr; }
}
