/*
 Theme Name:   Błażej Mroziński
 Theme URI:    https://blazejmrozinski.com
 Description:  Custom child theme for blazejmrozinski.com
 Author:       Clawdiusz
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  blazej
*/

/* ========================================
   DESIGN SYSTEM
   Inspired by minimalio.org
   Clean, functional, readable
   ======================================== */

/* --- Typography --- */
:root {
    --font-serif: 'Libre Baskerville', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-text: #242424;
    --color-text-light: #666666;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-border: #e5e5e5;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #ffffff;
    --spacing-section: clamp(4rem, 8vw, 8rem);
    --max-width: 1200px;
    --max-width-narrow: 720px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* --- Links --- */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-accent-hover);
}

/* --- Section Spacing --- */
.section {
    padding: var(--spacing-section) 0;
}
.section-alt {
    background: var(--color-bg-alt);
}

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

/* --- Hero Section --- */
.hero {
    padding: clamp(4rem, 10vw, 10rem) 0 var(--spacing-section);
    text-align: center;
}
.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: italic;
}
.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-family: var(--font-sans);
}
.hero-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
}

/* --- Card Grid (Ventures, Blog, Photos) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}
.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.card-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}
.card-body {
    padding: 1.5rem;
}
.card-body h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}
.card-body p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}
.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

/* --- Blog Post Cards --- */
.blog-card .card-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.blog-card .card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.blog-card .tag {
    background: var(--color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* --- Photo Gallery (Travel Section) --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.photo-grid img:hover {
    opacity: 0.85;
}
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.collection-card {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 8px;
}
.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.collection-card:hover img {
    transform: scale(1.05);
}
.collection-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.collection-card .overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}
.collection-card .overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Publications --- */
.publication-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.publication-item:last-child {
    border-bottom: none;
}
.publication-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}
.publication-item .authors {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.publication-item .journal {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
}
.publication-item .pub-links {
    margin-top: 0.5rem;
}
.publication-item .pub-links a {
    font-size: 0.85rem;
    margin-right: 1rem;
    font-weight: 600;
}

/* --- Social Icons (header/footer) --- */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.social-links a {
    color: var(--color-text-light);
    transition: color 0.2s;
}
.social-links a:hover {
    color: var(--color-accent);
}
.social-links svg {
    width: 20px;
    height: 20px;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Language Switcher --- */
.lang-switch {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.lang-switch a {
    color: var(--color-text-light);
    text-decoration: none;
}
.lang-switch .current-lang {
    color: var(--color-text);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 3rem 0;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
}
.site-footer a:hover {
    color: #fff;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-content .social-links a {
    color: rgba(255,255,255,0.7);
}
.footer-content .social-links a:hover {
    color: #fff;
}

/* --- CV Page --- */
.cv-section {
    margin-bottom: 3rem;
}
.cv-section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.cv-entry {
    margin-bottom: 1.5rem;
}
.cv-entry h3 {
    font-size: 1.1rem;
    margin: 0;
}
.cv-entry .period {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card-grid,
    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
