/* ===================== */
/* THEME VARIABLES */
/* ===================== */
:root {
    --bg-page: #f5f7fb;
    --bg-card: #ffffff;
    --bg-soft: #f9fafc;
    --bg-philosophy: #f7f9ff;

    --text-main: #2d3748;
    --text-muted: #718096;
    --text-soft: #4a5568;

    --accent: #5a67d8;
    --border: #edf2f7;
}

[data-theme="dark"] {
    --bg-page: #0f172a;
    --bg-card: #020617;
    --bg-soft: #020617;
    --bg-philosophy: #020617;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #cbd5f5;

    --accent: #818cf8;
    --border: #1e293b;
}

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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-page);
    min-height: 100vh;
    padding: 24px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 48px;
}

/* ===================== */
/* THEME TOGGLE */
/* ===================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    border: none;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.2em;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

/* ===================== */
/* HEADER */
/* ===================== */
.header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 56px;
}

.profile {
    flex-shrink: 0;
    width: 220px;
}

.profile img {
    width: 100%;
    border-radius: 14px;
    background: var(--bg-soft);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.header-text h1 {
    font-size: 2.6em;
    margin-bottom: 12px;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
}

/* ===================== */
/* SECTIONS */
/* ===================== */
section {
    margin-bottom: 48px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 8px;
    background: var(--accent);
    border-radius: 2px;
}

.about p {
    margin-bottom: 16px;
    color: var(--text-soft);
}

/* ===================== */
/* JOKE CARDS */
/* ===================== */
.joke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.joke-card {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border);
}

.joke-card h3 {
    margin-bottom: 8px;
    color: var(--accent);
}

.joke-card p {
    font-size: 0.95em;
    margin-bottom: 8px;
}

.joke-card p:first-of-type {
    font-style: italic;
    color: var(--text-muted);
}

.response {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--accent);
}

/* ===================== */
/* SKILLS */
/* ===================== */
.skills ul {
    list-style: none;
}

.skills li {
    background: var(--bg-soft);
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

/* ===================== */
/* PHILOSOPHY */
/* ===================== */
.philosophy {
    background: var(--bg-philosophy);
    padding: 32px;
    border-radius: 16px;
}

blockquote {
    font-size: 1.25em;
    font-style: italic;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    margin-bottom: 12px;
}

.quote-author {
    text-align: right;
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ===================== */
/* FOOTER */
/* ===================== */
footer {
    text-align: center;
    margin-top: 56px;
    color: var(--text-muted);
}

.small {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ===================== */
/* MOBILE */
/* ===================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .profile {
        width: 180px;
    }

    .header-text h1 {
        font-size: 2em;
    }
}
