/* ========================================
   DIARY PAGE – style.css
   ======================================== */
:root {
    --primary: #7c5cfc;
    --primary-light: #9b82ff;
    --primary-glow: rgba(124, 92, 252, 0.35);
    --accent: #38f9d7;
    --bg: #08080f;
    --bg-elevated: #0e0e1a;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text: #eeeef5;
    --text-secondary: #8888a8;
    --text-muted: #55556e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-full: 100px;
    --font: 'Heebo', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-serif: 'Noto Serif Hebrew', serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Grid BG */
.grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0; background: rgba(8, 8, 15, 0.9);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
}
.nav-content { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.logo-mark {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px; font-weight: 800; font-size: 0.9rem;
    font-family: var(--font-en); color: white;
}
.nav-page-name {
    font-size: 0.85rem; color: var(--text-muted);
    padding: 4px 14px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: var(--radius-full);
}
.nav-links { margin-right: auto; display: flex; gap: 20px; }
.nav-links a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--text); }

/* ========================================
   HERO
   ======================================== */
.diary-hero {
    padding: 160px 0 80px;
    position: relative; overflow: hidden; z-index: 1;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
}
.orb-1 {
    width: 400px; height: 400px; top: 5%; right: -15%;
    background: rgba(124, 92, 252, 0.12);
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-2 {
    width: 300px; height: 300px; bottom: -10%; left: -10%;
    background: rgba(56, 249, 215, 0.06);
    animation: orbFloat 15s ease-in-out infinite reverse;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

.hero-content { position: relative; z-index: 2; }

.hero-date-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: var(--radius-full);
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px;
    animation: fadeIn 0.6s ease;
}
.date-dot {
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}
.title-line { display: block; }
.title-line:first-child { animation: slideUp 0.6s ease 0.1s both; }
.title-serif {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text-secondary); font-style: italic;
    margin-top: 8px;
    animation: slideUp 0.6s ease 0.25s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; line-height: 1.9;
    animation: slideUp 0.6s ease 0.4s both;
}

/* ========================================
   DIARY ENTRIES
   ======================================== */
.entries-section {
    padding: 40px 0 100px; position: relative; z-index: 1;
}

.diary-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.diary-entry.visible {
    opacity: 1; transform: translateY(0);
}

/* Date Column */
.entry-date-col {
    display: flex; flex-direction: column; align-items: center;
}
.entry-date {
    text-align: center; padding: 16px 0;
    position: sticky; top: 80px;
}
.date-day {
    display: block; font-size: 2.2rem; font-weight: 900;
    font-family: var(--font-en);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
.date-month {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); margin-top: 4px;
}
.date-year {
    display: block; font-size: 0.7rem;
    color: var(--text-muted); margin-top: 2px;
}
.entry-line {
    width: 1px; flex: 1; margin-top: 12px;
    background: linear-gradient(to bottom, var(--border-hover), transparent);
}

/* Entry Content */
.entry-content {
    padding: 32px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: var(--transition);
}
.entry-content:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 600; border: 1px solid;
}
.tag-thought { background: rgba(124, 92, 252, 0.08); border-color: rgba(124, 92, 252, 0.2); color: var(--primary-light); }
.tag-tech { background: rgba(56, 249, 215, 0.06); border-color: rgba(56, 249, 215, 0.15); color: var(--accent); }
.tag-business { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tag-personal { background: rgba(248, 113, 113, 0.06); border-color: rgba(248, 113, 113, 0.15); color: #f87171; }

.entry-title {
    font-size: 1.4rem; font-weight: 700; line-height: 1.4;
    margin-bottom: 16px;
}

.entry-body p {
    color: var(--text-secondary); font-size: 1rem; line-height: 1.9;
    margin-bottom: 14px;
}
.entry-body p:last-child { margin-bottom: 0; }
.entry-body strong { color: var(--text); font-weight: 600; }
.entry-body em { color: var(--primary-light); font-style: italic; }

.entry-footer {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border);
}
.reading-time { font-size: 0.8rem; color: var(--text-muted); }

/* ========================================
   ABOUT
   ======================================== */
.about-diary {
    padding: 40px 0 100px; position: relative; z-index: 1;
}
.about-card {
    padding: 40px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    text-align: center; max-width: 600px; margin: 0 auto;
}
.about-card h2 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 12px;
}
.about-card p {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8;
    margin-bottom: 8px;
}
.inline-link {
    color: var(--primary-light); border-bottom: 1px solid rgba(155, 130, 255, 0.3);
    transition: var(--transition);
}
.inline-link:hover { border-color: var(--primary-light); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
}
.footer p { font-size: 0.75rem; color: var(--text-muted); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .diary-entry {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .entry-date-col {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 12px;
    }
    .entry-date {
        display: flex; align-items: baseline; gap: 8px;
        position: static;
    }
    .date-day { font-size: 1.5rem; }
    .entry-line { display: none; }
    .entry-content { padding: 24px 20px; }
    .nav-links { display: none; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}
