/*
Theme Name: Skupiam Theme
Theme URI: https://skupiam.pl
Author: Marcel Banasik
Description: Minimalistyczny motyw dla skupiam.pl z fioletowym akcentem
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: skupiam-theme
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7c4dff;
    --purple-light: #ede7ff;
    --purple-dark: #5c35cc;
    --text: #1a1a2e;
    --text-light: #555577;
    --bg: #ffffff;
    --bg-soft: #f8f7ff;
    --border: #e8e4f3;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 2px 20px rgba(124, 77, 255, 0.08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--purple-dark);
}

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

/* === LAYOUT === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 60px 0;
}

/* === HEADER === */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--text);
}

/* === NAVIGATION === */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.site-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: var(--purple);
}

/* === HERO === */
.hero {
    background: var(--bg-soft);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 span {
    color: var(--purple);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 36px;
}

.btn {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--purple-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
    margin-left: 12px;
}

.btn-outline:hover {
    background: var(--purple-light);
    color: var(--purple-dark);
}

/* === POMODORO TIMER === */
.pomodoro-section {
    padding: 60px 0;
    background: var(--bg);
}

.pomodoro-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text);
}

.pomodoro-timer {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
}

.timer-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}

.timer-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.timer-tab.active {
    background: var(--purple);
    color: #fff;
}

.timer-display {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 36px;
    font-variant-numeric: tabular-nums;
}

.timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.timer-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.timer-btn-start {
    background: var(--purple);
    color: #fff;
    flex: 1;
}

.timer-btn-start:hover {
    background: var(--purple-dark);
}

.timer-btn-reset {
    background: var(--border);
    color: var(--text-light);
}

.timer-btn-reset:hover {
    background: #d8d2ef;
}

.pomodoro-count {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pomodoro-count span {
    color: var(--purple);
    font-weight: 600;
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === POSTS === */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.post-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.post-card h2 a {
    color: var(--text);
}

.post-card h2 a:hover {
    color: var(--purple);
}

.post-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--purple);
}

/* === SINGLE POST === */
.single-post {
    max-width: 720px;
    margin: 0 auto;
}

.single-post h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.single-post .post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.single-post .post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
}

.single-post .post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
}

.single-post .post-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 16px 0 20px 24px;
    color: var(--text-light);
}

.single-post .post-content li {
    margin-bottom: 8px;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--purple);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .site-nav ul {
        gap: 16px;
    }

    .pomodoro-timer {
        padding: 32px 24px;
    }

    .timer-display {
        font-size: 4rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }
}
