:root {
    --container-width: 760px;
    --primary: #2f6f62;
    --primary-soft: #6fb3a2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: #f4f6f5;
    color: #2e3332;
    line-height: 1.7;
}

h1 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.4px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

p {
    margin-bottom: 14px;
    font-size: 1rem;
}

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

.header {
    max-width: var(--container-width);
    margin: 90px auto 60px;
    padding: 28px;
    text-align: center;
    background-color: var(--primary);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.header p { opacity: 0.9; margin-top: 10px; }

.navbar {
    position: sticky;
    top: 0;
    background-color: #eef2f0;
    border-bottom: 1px solid #d6dedb;
    z-index: 1000;
}

.navbar ul {
    max-width: var(--container-width);
    margin: auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.navbar a {
    padding: 8px 14px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #2e3332;
    border-radius: 12px;
}

.navbar a.active {
    background-color: var(--primary);
    color: #fff;
}

main {
    max-width: var(--container-width);
    margin: auto;
    padding: 20px 20px 60px;
}

section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

section:last-child { border-bottom: none; }

.intro p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3a3f3d;
}

.emotions .emotion {
    padding: 18px 20px;
    margin-top: 16px;
    border-radius: 14px;
    background-color: #fff;
}

.quotes { margin-top: 60px; }
.quotes h2 { margin-bottom: 25px; }
.quotes blockquote { margin-bottom: 22px; }

blockquote {
    padding: 18px 22px;
    background-color: #fff;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-style: italic;
    color: #3a3f3d;
    line-height: 1.6;
}

textarea {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #cfd6d4;
    background-color: #fff;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47,111,98,0.15);
}

textarea::placeholder { color: #9aa3a0; }

button {
    margin-top: 14px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
}

.note,
.share-note,
.support-note,
.about-note {
    font-size: 0.9rem;
    color: #555;
}

.footer {
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
    color: #666;
}

.theme-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
}

.icon { font-size: 16px; opacity: 0.6; }

.theme-switch {
    width: 44px;
    height: 22px;
    background-color: #cfd6d4;
    border-radius: 20px;
    position: relative;
}

.switch-thumb {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.menu-button {
    position: fixed;
    top: 18px;
    left: 18px;
    font-size: 26px;
    cursor: pointer;
    z-index: 100000;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 99999;
}

.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 16px 0; }
.mobile-menu a { font-size: 1.05rem; text-decoration: none; opacity: 0.75; color: inherit; }
.mobile-menu a.active { opacity: 1; font-weight: 600; }

@media (max-width: 767px) {
    .navbar { display: none; }
    .menu-button { display: block; }
}

@media (min-width: 768px) {
    .navbar { display: block; }
    .menu-button,
    .mobile-menu { display: none; }
}

.emotion-header,
.support-header,
.about-header,
body.home .header {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emotion-header::before,
.support-header::before,
.about-header::before,
body.home .header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    z-index: 0;
}

.emotion-header::before { background-image: url("/images/kaygi.jpg"); }
.support-header::before { background-image: url("/images/destek.webp"); }
.about-header::before { background-image: url("/images/hakkimizda.webp"); filter: blur(1px); opacity: 0.6; }
body.home .header::before { background-image: url("/images/pencere.jpg"); }

.header::after,
.emotion-header::after,
.support-header::after,
.about-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header h1,
.header p,
.emotion-header h1,
.emotion-header p,
.support-header h1,
.support-header p,
.about-header h1,
.about-header p {
    position: relative;
    z-index: 1;
}

.header::before,
.header::after,
.about-header::before,
.about-header::after {
    pointer-events: none;
}

body.dark-mode {
    background-color: #1b1f1e;
    color: #d7dede;
}

body.dark-mode h3 { color: var(--primary-soft); }

body.dark-mode .navbar {
    background-color: #1f2423;
    border-bottom-color: #2d3432;
}

body.dark-mode .navbar a { color: #d7dede; }

body.dark-mode .navbar a.active {
    background-color: var(--primary-soft);
    color: #0e1f1b;
}

body.dark-mode section { border-bottom-color: rgba(255,255,255,0.06); }

body.dark-mode p,
body.dark-mode li { color: #d0d6d4; }

body.dark-mode blockquote {
    background-color: #2a2f2e;
    border-left-color: var(--primary-soft);
    color: #d6dcda;
}

body.dark-mode textarea {
    background-color: #2a302f;
    color: #fff;
    border-color: #3a4442;
}

body.dark-mode textarea::placeholder { color: #8f9a97; }

body.dark-mode .theme-switch { background-color: var(--primary-soft); }
body.dark-mode .switch-thumb { transform: translateX(22px); }

body.dark-mode .emotions .emotion {
    background-color: #242928;
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode .emotion-header::before,
body.dark-mode .support-header::before,
body.dark-mode .about-header::before,
body.dark-mode.home .header::before {
    filter: brightness(0.65) saturate(0.85) blur(1.2px);
}

body.dark-mode .header h1,
body.dark-mode .emotion-header h1,
body.dark-mode .support-header h1,
body.dark-mode .about-header h1 {
    color: #e2ebe8;
}

body.dark-mode .header p,
body.dark-mode .emotion-header p,
body.dark-mode .support-header p,
body.dark-mode .about-header p {
    color: #c5d2ce;
}
