/* Yoyaku Style Fonts */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500;600;700&display=swap');
/* Tag Cloud Font (keep Inter - działa!) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === LOGO KLIKALNY === */
.hub-logo-link {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
}

.hub-logo-link:hover,
.hub-logo-link:focus,
.hub-logo-link:active {
    text-decoration: none;
    border: none;
    outline: none;
}

.hub-logo {
    display: block;
    cursor: pointer;
}

/* === VARIABLES === */
:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --border-color: #E0E0E0;
    --accent-blue: #0066FF;
    --accent-copper: #B87333;
    --accent-gray: #6B6B6B;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #1A1A1A;
    --bg-secondary: #2C2C2C;
    --text-primary: #E0E0E0;
    --text-secondary: #9B9B9B;
    --border-color: #3A3A3A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Spline Sans Mono', monospace;
}

/* === THEME TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-icon {
    font-size: 20px;
}

[data-theme="dark"] .theme-icon::before {
    content: '🌙';
}

/* === HUB PAGE === */
.hub-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hub-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.hub-logo {
    width: 280px;
    max-width: 90%;
    height: auto;
    margin-bottom: 30px;
}

.hub-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hub-subtitle {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

/* === WIP NOTICE - NOWY === */
.wip-notice {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #6B6B6B;
    font-style: normal;
    margin: 0;
    opacity: 1;
    letter-spacing: 0.5px;
}

/* === CO NOWEGO SECTION === */
.whats-new {
    max-width: 650px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: var(--bg-secondary);
}

/* Tool item - subtle accent */
.tool-item {
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
    margin-left: -3px;
}

.tool-item .news-link {
    font-weight: 500;
}

.news-date {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-copper);
    min-width: 45px;
    flex-shrink: 0;
}

.news-link {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: var(--accent-blue);
}

.news-more {
    text-align: right;
    margin-top: 16px;
}

.news-more a {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.news-more a:hover {
    border-bottom-color: var(--accent-blue);
}

/* === TAG CLOUD (gęstsza, grubsza) === */
.tag-cloud-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 30px 40px;
}

.tag-cloud {
    max-width: 900px;
    width: 100%;
    text-align: center;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cloud-tag {
    display: inline-block;
    margin: 0 8px 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.cloud-tag:hover {
    transform: scale(1.05) translateY(-1px);
    opacity: 0.7;
}

/* Rozmiary + Bold - GRUBSZE */
.cloud-size-1 { 
    font-size: 15px; 
    font-weight: 600;
}
.cloud-size-2 { 
    font-size: 17px; 
    font-weight: 600;
}
.cloud-size-3 { 
    font-size: 21px; 
    font-weight: 700;
}
.cloud-size-4 { 
    font-size: 27px; 
    font-weight: 700;
}
.cloud-size-5 { 
    font-size: 35px; 
    font-weight: 800;
}
.cloud-size-6 { 
    font-size: 45px; 
    font-weight: 800;
}
.cloud-size-7 { 
    font-size: 54px; 
    font-weight: 900;
}

/* Kolory akcenty */
.cloud-blue { color: var(--accent-blue); }
.cloud-copper { color: var(--accent-copper); }
.cloud-gray { color: var(--text-secondary); }
.cloud-dark { color: var(--text-primary); }

/* === HUB FOOTER === */
.hub-footer {
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}

.contact-qr {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qr-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.qr-link:hover {
    transform: translateY(-4px);
}

.qr-link img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.qr-link span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* === EMAIL CONTACT === */
.contact-email {
    text-align: center;
    margin: 30px 0 20px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--accent-blue);
}

.email-icon {
    font-size: 20px;
}

.email-note {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* === FOOTER COPYRIGHT === */
.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright p {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* === ARCHIVE LIST === */
.toggle-btn {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Tool item in archive - subtle accent */
.archive-list-item.tool-item {
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
    margin-left: -3px;
}

.archive-list-item.tool-item a {
    font-weight: 500;
}

.archive-list-date {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-copper);
    min-width: 45px;
    flex-shrink: 0;
}

.archive-list-content {
    flex: 1;
}

.archive-list-item a {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: none;
}

.archive-list-item a:hover {
    color: var(--accent-blue);
    border-bottom: none;
}

.archive-list-excerpt {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 8px 0 0 0;
}

/* ARCHIVE CARDS (dla blog.php) */
.archive-item {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.archive-meta time {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.archive-category {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
}

.archive-item h2 {
    font-size: 28px;
    margin: 0 0 12px 0;
}

.archive-item h2 a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease;
}

.archive-item h2 a:hover {
    color: var(--accent-blue);
    border-bottom: none;
}

.archive-excerpt {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* === CONTENT PAGES === */
.page-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.reading-pane {
    max-width: 650px;
    margin: 60px auto;
    padding: 0 30px;
}

.category-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.reading-pane h1 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.meta time,
.meta span {
    margin-right: 8px;
}

/* === CONTENT === */
.content {
    color: var(--text-primary);
}

.content .lead {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 50px 0 20px;
}

.content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 35px 0 15px;
}

.content p {
    margin-bottom: 24px;
}

.content ul,
.content ol {
    margin: 24px 0;
    padding-left: 30px;
}

.content li {
    margin-bottom: 12px;
}

.content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 255, 0.3);
    transition: border-color 0.2s;
}

.content a:hover {
    border-bottom-color: var(--accent-blue);
}

.content blockquote {
    margin: 40px 0;
    padding-left: 30px;
    border-left: 3px solid var(--accent-copper);
    font-style: italic;
    color: var(--text-secondary);
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 4px;
}

.content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.content pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.content pre code {
    background: none;
    padding: 0;
    border: none;
}

/* === EMBED === */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === FOOTER === */
.page-footer {
    max-width: 650px;
    margin: 80px auto 60px;
    padding: 40px 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.footer-link:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

.related {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.related span {
    margin-right: 15px;
}

.related a {
    color: var(--accent-blue);
    text-decoration: none;
    margin: 0 10px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.related a:hover {
    border-bottom-color: var(--accent-blue);
}

/* === MOBILE === */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .hub-header {
        padding: 50px 20px 15px;
    }
    
    .hub-logo {
        width: 220px;
    }
    
    .hub-title {
        font-size: 26px;
    }
    
    .hub-subtitle {
        font-size: 14px;
    }
    
    .wip-notice {
        font-size: 13px;
    }
    
    .tag-cloud-main {
        padding: 25px 15px 30px;
    }
    
    .tag-cloud {
        max-width: 100%;
        line-height: 1.5;
    }
    
    .cloud-tag {
        margin: 0 6px 10px 6px;
    }
    
    .cloud-size-1 { 
        font-size: 13px; 
        font-weight: 600;
    }
    .cloud-size-2 { 
        font-size: 15px; 
        font-weight: 600;
    }
    .cloud-size-3 { 
        font-size: 19px; 
        font-weight: 700;
    }
    .cloud-size-4 { 
        font-size: 24px; 
        font-weight: 700;
    }
    .cloud-size-5 { 
        font-size: 30px; 
        font-weight: 800;
    }
    .cloud-size-6 { 
        font-size: 38px; 
        font-weight: 800;
    }
    .cloud-size-7 { 
        font-size: 44px; 
        font-weight: 900;
    }
    
    .qr-link img {
        width: 100px;
        height: 100px;
    }
    
    .email-link {
        font-size: 15px;
    }
    
    .email-icon {
        font-size: 18px;
    }
    
    .reading-pane {
        margin: 40px auto;
        padding: 0 20px;
    }
    
    .reading-pane h1 {
        font-size: 32px;
    }
    
    .content .lead {
        font-size: 20px;
    }
    
    .content h2 {
        font-size: 24px;
    }
    
    .content h3 {
        font-size: 20px;
    }
    
    /* Co Nowego - Mobile */
    .whats-new {
        margin: 30px auto 20px;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .news-date {
        font-size: 12px;
        min-width: 40px;
    }
    
    .news-link {
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* HUB PAGES - Tool Cards (Mental Models, Job Search, etc)    */
/* ═══════════════════════════════════════════════════════════ */

.tools-list {
    margin: 30px 0;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tool-header {
    margin-bottom: 8px;
}

.tool-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.tool-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-style: italic;
}

.tool-status {
    display: inline-block;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tool-preview {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
    .tool-card {
        padding: 14px;
        margin-bottom: 12px;
    }
    
    .tool-header h3 {
        font-size: 16px;
    }
    
    .tool-subtitle {
        font-size: 13px;
    }
    
    .tool-preview {
        font-size: 13px;
    }
}