/* ============================================
   guajantan — tech media CSS
   Clean & Sharp · Electric Blue · Inter + Instrument Serif
   ============================================ */

:root {
    --gj-blue: #0066FF;
    --gj-blue-dark: #0052CC;
    --gj-blue-light: #E8F0FE;
    --gj-black: #0A0A0A;
    --gj-gray-900: #1A1A1A;
    --gj-gray-700: #404040;
    --gj-gray-500: #6B6B6B;
    --gj-gray-300: #D4D4D4;
    --gj-gray-100: #F5F5F5;
    --gj-white: #FFFFFF;
    --gj-red: #FF3B30;
    --gj-radius: 6px;
    --gj-radius-lg: 12px;
    --gj-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --gj-shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
    --gj-transition: all 0.2s ease;
    --gj-max-width: 1240px;
    --gj-content-width: 720px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gj-gray-900);
    background: var(--gj-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gj-black);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--gj-blue);
    text-decoration: none;
    transition: var(--gj-transition);
}
a:hover { color: var(--gj-blue-dark); }

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

/* === Hide Genesis defaults === */
.site-header, .nav-primary, .nav-secondary,
.site-footer, .sidebar, .sidebar-alt,
.breadcrumb, .genesis-skip-link {
    display: none !important;
}

/* === Layout === */
.site-container { max-width: 100%; margin: 0; padding: 0; }
.site-inner { padding: 0; max-width: 100%; }
.content-sidebar-wrap { width: 100%; max-width: 100%; }
.content { width: 100%; padding: 0; float: none; }

/* === Header === */
.gj-header {
    background: var(--gj-white);
    border-bottom: 1px solid var(--gj-gray-100);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gj-header-top {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gj-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gj-black);
    letter-spacing: -0.03em;
}
.gj-logo:hover { color: var(--gj-blue); }

/* Nav bar */
.gj-nav-close { display: none; }
.gj-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gj-gray-700);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}
.gj-nav {
    background: var(--gj-black);
}

.gj-nav-inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gj-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.gj-nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: var(--gj-transition);
}

.gj-nav-menu li a:hover,
.gj-nav-menu li.current-menu-item a,
.gj-nav-menu li.current-menu-ancestor a {
    color: var(--gj-white);
    background: rgba(255,255,255,0.1);
}

/* Header search */
.gj-header-search {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gj-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gj-gray-500);
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: var(--gj-transition);
}
.gj-search-toggle:hover { color: var(--gj-blue); background: none; }

/* === Container === */
.gj-container {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Hero / Featured Article === */
.gj-hero {
    padding: 2rem 0;
}

.gj-hero-card {
    position: relative;
    border-radius: var(--gj-radius-lg);
    overflow: hidden;
    background: var(--gj-black);
}

.gj-hero-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    opacity: 0.7;
    display: block;
}

.gj-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.gj-hero-overlay .gj-cat-badge {
    background: var(--gj-blue);
}

.gj-hero-overlay h1 {
    color: var(--gj-white);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    max-width: 700px;
}

.gj-hero-overlay h1 a { color: var(--gj-white); }
.gj-hero-overlay h1 a:hover { color: var(--gj-blue-light); }

.gj-hero-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 0;
}

.gj-hero-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* === Category Badge === */
.gj-cat-badge {
    display: inline-block;
    background: var(--gj-blue-light);
    color: var(--gj-blue);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.gj-cat-badge.red { background: #FFF0F0; color: var(--gj-red); }

/* === Article Grid === */
.gj-section {
    padding: 2rem 0;
}

.gj-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gj-black);
}

.gj-section-header h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.gj-section-header a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gj-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gj-grid {
    display: grid;
    gap: 1.5rem;
}

.gj-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gj-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Main + sidebar layout */
.gj-layout-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

/* === Article Card === */
/* Archive grid layout */
.gj-archive {
    padding: 0 1.5rem !important;
    margin: 0 auto;
    max-width: var(--gj-max-width);
}
.site-inner {
    padding: 0 1rem;
}
.gj-archive .content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    .gj-archive .content { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .gj-archive .content { grid-template-columns: repeat(2, 1fr); }
}
/* Hide archive pagination spanning issue */
.gj-archive .content .archive-pagination {
    grid-column: 1 / -1;
}

/* Archive entries as cards */
.entry.gj-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.entry.gj-card .entry-header { padding: 0; }
.entry.gj-card .entry-content { padding: 0; }
.entry.gj-card .entry-footer { padding: 0; border: none; }
.entry.gj-card .entry-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}
.entry.gj-card .entry-title a { color: var(--gj-black); }
.entry.gj-card .entry-title a:hover { color: var(--gj-blue); }
.entry.gj-card .gj-card-thumb {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: var(--gj-radius);
    margin-bottom: 0.75rem;
}
.entry.gj-card .gj-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    max-width: 100%;
}
.gj-card-excerpt {
    color: var(--gj-gray-500);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.gj-card {
    display: flex;
    flex-direction: column;
    transition: var(--gj-transition);
}

.gj-card:hover { transform: translateY(-2px); }

.gj-card-thumb {
    position: relative;
    border-radius: var(--gj-radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 3/2;
}

.gj-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--gj-transition);
}

.gj-card:hover .gj-card-thumb img {
    transform: scale(1.03);
}

.gj-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.gj-card-body h3 a { color: var(--gj-black); }
.gj-card-body h3 a:hover { color: var(--gj-blue); }

.gj-card-body p {
    color: var(--gj-gray-500);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.gj-card-meta {
    font-size: 0.75rem;
    color: var(--gj-gray-500);
    margin-top: 0.4rem;
}

.gj-card-meta a { color: var(--gj-gray-500); }

/* Small horizontal card (sidebar) */
.gj-card-sm {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gj-gray-100);
}

.gj-card-sm:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gj-card-sm .gj-card-thumb {
    margin-bottom: 0;
    border-radius: var(--gj-radius);
    aspect-ratio: 1;
}

.gj-card-sm h4 {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.35;
}

.gj-card-sm h4 a { color: var(--gj-black); }
.gj-card-sm h4 a:hover { color: var(--gj-blue); }

.gj-card-sm .gj-card-meta { margin-top: 0.3rem; }

/* === Single Article === */
.gj-article {
    max-width: var(--gj-content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.gj-article-header {
    margin-bottom: 2rem;
}

.gj-article-header h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.gj-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gj-gray-500);
    font-size: 0.88rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gj-gray-100);
}

.gj-article-meta strong { color: var(--gj-black); }

.gj-article-featured {
    margin: 0 -3rem 2rem;
    border-radius: var(--gj-radius-lg);
    overflow: hidden;
}

.gj-article-featured img {
    width: 100%;
    display: block;
}

.gj-article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.85;
    color: var(--gj-gray-700);
}

.gj-article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.gj-article-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.gj-article-content p {
    margin-bottom: 1.5rem;
}

.gj-article-content img {
    border-radius: var(--gj-radius);
    margin: 1.5rem 0;
}

.gj-article-content blockquote {
    border-left: 3px solid var(--gj-blue);
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-style: italic;
    color: var(--gj-gray-500);
}

.gj-article-content a {
    color: var(--gj-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0,102,255,0.3);
    text-underline-offset: 2px;
}
.gj-article-content a:hover {
    text-decoration-color: var(--gj-blue);
}

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

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

/* === Article Tags === */
.gj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gj-gray-100);
}

.gj-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--gj-gray-100);
    color: var(--gj-gray-700);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--gj-transition);
}

.gj-tag:hover {
    background: var(--gj-blue-light);
    color: var(--gj-blue);
}

/* === Trending Bar === */
.gj-trending {
    background: var(--gj-gray-100);
    padding: 0.6rem 0;
    font-size: 0.8rem;
    overflow: hidden;
}

.gj-trending-inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gj-trending-label {
    font-weight: 700;
    color: var(--gj-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    font-size: 0.7rem;
}

.gj-trending-items {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.gj-trending-items a {
    color: var(--gj-gray-700);
    white-space: nowrap;
    font-weight: 500;
}
.gj-trending-items a:hover { color: var(--gj-blue); }

/* === Footer === */
.gj-footer {
    background: var(--gj-black);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.gj-footer-inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.gj-footer h4 {
    color: var(--gj-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.gj-footer p { font-size: 0.88rem; line-height: 1.6; }

.gj-footer a { color: rgba(255,255,255,0.7); }
.gj-footer a:hover { color: var(--gj-white); }

.gj-footer ul { list-style: none; padding: 0; margin: 0; }
.gj-footer ul li { margin-bottom: 0.5rem; }
.gj-footer ul li a { font-size: 0.88rem; }

.gj-footer-bottom {
    max-width: var(--gj-max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.gj-footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gj-white);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    display: block;
}

/* === Blog / Archive === */
.gj-archive {
    padding: 2rem 0 4rem;
}

.gj-archive .entry {
    border: none;
    box-shadow: none;
    background: transparent;
}

.page .entry-header,
.page .entry { border: none; box-shadow: none; background: transparent; }
.page .entry-header { display: none; }
.page .entry-content { padding: 0; }

/* Hide post meta on pages */
.page .entry-meta { display: none; }

/* === Newsletter CTA === */
.gj-newsletter {
    background: var(--gj-gray-100);
    border-radius: var(--gj-radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.gj-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gj-newsletter p {
    color: var(--gj-gray-500);
    margin-bottom: 1.5rem;
}

.gj-newsletter-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 0.5rem;
}

.gj-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gj-gray-300);
    border-radius: var(--gj-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.gj-newsletter-form input:focus {
    outline: none;
    border-color: var(--gj-blue);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.gj-newsletter-form button {
    padding: 0.7rem 1.5rem;
    background: var(--gj-blue);
    color: white;
    border: none;
    border-radius: var(--gj-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--gj-transition);
    font-family: 'Inter', sans-serif;
}

.gj-newsletter-form button:hover {
    background: var(--gj-blue-dark);
}

/* === Admin Bar === */
.admin-bar .gj-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gj-header { top: 46px; } }

/* === Responsive === */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .gj-grid-2, .gj-grid-3, .gj-grid-4 { grid-template-columns: 1fr; }
    .gj-layout-main { grid-template-columns: 1fr; }
    .gj-footer-inner { grid-template-columns: 1fr 1fr; }
    
    .gj-hero-card img { height: 300px; }
    .gj-hero-overlay { padding: 1.5rem; }
    .gj-hero-overlay h1 { font-size: 1.5rem; }
    
    .gj-nav-inner { padding: 0 1rem; }
    
    .gj-article { padding: 1.5rem 1rem 3rem; }
    .gj-article-header h1 { font-size: 1.8rem; }
    .gj-article-featured { margin: 0 -1rem 1.5rem; border-radius: 0; }
    .gj-article-content { font-size: 1.05rem; }
    
    .gj-newsletter-form { flex-direction: column; }

    .gj-menu-toggle { display: block; }
}

@media (max-width: 480px) {
    .gj-footer-inner { grid-template-columns: 1fr; }
}

/* === Mobile Menu Toggle — styles only, visibility controlled in @media above === */

/* Mobile nav overlay */
@media (max-width: 768px) {
    .gj-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: var(--gj-black);
        overflow-y: auto;
        padding-top: 60px;
    }
    .gj-nav.gj-nav-open { display: block; }
    .gj-nav-inner { flex-direction: column; overflow: visible; padding: 1rem; }
    .gj-nav-menu { flex-direction: column; width: 100%; }
    .gj-nav-menu li a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .gj-nav-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 10000;
    }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
