@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Manrope:wght@500;700;800&display=swap');

:root {
    --bg: #f5efe5;
    --surface: #fffdf8;
    --surface-2: #f1e6d5;
    --text: #1c1b18;
    --muted: #6e665a;
    --line: #d8c8ae;
    --accent: #0c6b58;
    --accent-strong: #084d3f;
    --panel: rgba(255, 253, 248, 0.92);
    --panel-dark: #faf6ef;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(34, 28, 18, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(12, 107, 88, 0.12), transparent 30%),
        linear-gradient(180deg, #fbf7ef 0%, #f3eadc 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(14px);
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    margin-top: 48px;
    padding: 20px 0;
}

.header-inner,
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-inner {
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav form {
    margin: 0;
}

.nav button,
.button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.button.primary,
.nav button {
    background: var(--accent);
    color: #fff;
}

.hero,
.auth-wrap {
    padding: 56px 0 24px;
}

.home-shell {
    padding: 40px 0 24px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.home-copy,
.hero-preview,
.feature-card,
.roadmap-card {
    padding: 32px;
}

.home-copy {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(12, 107, 88, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.96) 0%, rgba(243, 234, 220, 0.96) 100%);
    border: 1px solid rgba(216, 200, 174, 0.85);
    box-shadow: var(--shadow);
}

.home-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1.05;
    max-width: 11ch;
}

.home-lead {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat-chip {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(216, 200, 174, 0.95);
}

.stat-chip strong,
.stat-chip span {
    display: block;
}

.stat-chip strong {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.stat-chip span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-preview {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.preview-header h2 {
    margin: 6px 0 0;
    font-size: 1.45rem;
}

.preview-title,
.tweet-top span,
.composer-body p,
.tweet-card small {
    color: var(--muted);
}

.preview-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 0.86rem;
    font-weight: 700;
}

.composer-mini,
.tweet-card {
    border: 1px solid rgba(216, 200, 174, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.composer-mini {
    display: flex;
    gap: 14px;
    padding: 18px;
    align-items: flex-start;
}

.avatar-dot,
.avatar-square {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent) 0%, #d5f2cb 100%);
}

.avatar-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.avatar-square {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.composer-body strong,
.tweet-top strong {
    display: block;
}

.composer-body p {
    margin: 6px 0 0;
}

.timeline-preview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tweet-card {
    padding: 18px;
}

.tweet-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.tweet-card p {
    margin: 0 0 12px;
    line-height: 1.8;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.feature-card {
    position: relative;
}

.feature-card h3,
.roadmap-card h2 {
    margin-top: 0;
}

.feature-card p,
.roadmap-card p,
.clean-list {
    color: var(--muted);
    line-height: 1.8;
}

.feature-mark {
    display: inline-block;
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, #f3c96b 100%);
    margin-bottom: 18px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(12, 107, 88, 0.94) 0%, rgba(8, 77, 63, 0.98) 100%);
    color: #f6fff8;
}

.accent-card .eyebrow,
.accent-card .clean-list {
    color: rgba(246, 255, 248, 0.82);
}

.clean-list {
    margin: 0;
    padding-right: 18px;
}

.clean-list li + li {
    margin-top: 10px;
}

.card {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(216, 200, 174, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero .card,
.form-card,
.profile {
    padding: 32px;
}

.profile-card {
    max-width: 760px;
    margin: 48px auto 24px;
}

.profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-handle {
    margin: 8px 0 0;
    color: var(--muted);
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.profile-stats strong,
.profile-stats span {
    display: block;
}

.profile-stats span {
    color: var(--muted);
    margin-top: 4px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-card {
    width: min(520px, 100%);
    margin: 0 auto;
}

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e0b4ad;
    border-radius: 14px;
    background: #fff1ef;
    color: #8a2f23;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 8px;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #b9d8c6;
    border-radius: 14px;
    background: #eef8f1;
    color: #1f5b38;
}

.notice p {
    margin: 0;
}

.feed-notice {
    margin: 16px 22px 0;
}

.auth-meta {
    margin: 14px 0 0;
    color: var(--muted);
}

label {
    display: block;
    margin-bottom: 16px;
}

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    font: inherit;
}

textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
}

.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 48px 0 24px;
}

.settings-nav,
.settings-form {
    padding: 24px;
}

.settings-link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--muted);
}

.settings-link.active {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
}

.settings-form h1 {
    margin-top: 0;
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(241, 230, 213, 0.45);
}

.media-preview span,
.media-preview strong {
    display: block;
}

.media-preview span {
    color: var(--muted);
    margin-bottom: 6px;
}

.discovery-shell {
    padding: 48px 0 24px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    margin-top: 24px;
}

.discovery-panel {
    padding: 28px;
}

.discovery-panel h1,
.discovery-panel h2 {
    margin-top: 0;
}

.discovery-copy,
.clean-copy,
.empty-state,
.result-item span,
.result-item p,
.section-head span {
    color: var(--muted);
}

.search-form-wide {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-form-wide input {
    flex: 1;
    min-width: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(216, 200, 174, 0.75);
}

.result-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.result-item strong,
.result-item span {
    display: block;
}

.result-item p {
    margin: 8px 0 0;
    line-height: 1.8;
}

.result-item-post .button {
    white-space: nowrap;
}

.bookmark-panel {
    margin-top: 24px;
}

.bookmark-list {
    gap: 0;
}

@media (max-width: 720px) {
    .header-inner,
    .nav,
    .actions,
    .home-hero,
    .feature-strip,
    .home-grid,
    .home-stats,
    .settings-grid,
    .media-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero,
    .feature-strip,
    .home-grid,
    .home-stats,
    .settings-grid,
    .discovery-grid,
    .media-preview {
        grid-template-columns: 1fr;
    }

    .search-form-wide,
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
