:root {
    color-scheme: light dark;
    --font-dancing-script: 'Dancing Script', cursive;
    --font-montserrat: 'Montserrat', sans-serif;
    --body-bg: #f0f2f5;
    --text-color: #111111;
    --shell-bg: #ffffff;
    --shell-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    --primary-color: #ffffff;
    --header-border: rgba(0, 0, 0, 0.06);
    --headrer-text: #111111;
    --header-icon: inherit;
    --content-bg: transparent;
    --background-color: #ffffff;
    --border-radius: 12px;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-border: rgba(0, 0, 0, 0.06);
    --post-dark-bg: var(--primary-color, #ffffff);
    --post-dark-text: var(--text-color, #111111);
    --post-light-bg: #f3f0e6;
    --post-light-text: #111111;
    --secondary-color: #f3f0e6;
    --accent-color: #00ffe7;
    --light-text: rgba(17, 17, 17, 0.7);
    --footer-bg: var(--primary-color, #ffffff);
    --footer-border: rgba(0, 0, 0, 0.04);
    --footer-icon: #888888;
    --nav-bg: var(--primary-color, #ffffff);
    --nav-border: rgba(0, 0, 0, 0.08);
    --nav-text: #888888;
    --nav-active-text: var(--accent-color, #00ffe7);
    --post-gradient: linear-gradient(135deg, rgba(0, 255, 231, 0.14), transparent 65%);
    
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: var(--font-montserrat), 'Montserrat', 'Segoe UI', sans-serif;
    background-color: var(--body-bg, #f0f2f5);
    color: var(--text-color, #111111);
    display: flex;
    justify-content: center;
    padding: clamp(8px, 4vw, 28px);
}

.app-shell {
    width: min(100%, 420px);
    min-height: calc(100vh - clamp(16px, 8vw, 56px));
    height: calc(100vh - clamp(16px, 8vw, 56px));
    max-height: calc(100vh - clamp(16px, 8vw, 56px));
    background-color: var(--shell-bg, var(--body-bg, #ffffff));
    border-radius: clamp(18px, 4vw, 34px);
    box-shadow: var(--shell-shadow, 0 20px 45px rgba(0, 0, 0, 0.18));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

header {
    background: var(--header-bg, var(--primary-color, #ffffff));
    color: var(--header-text, var(--text-color, #111111));
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--header-border, rgba(0, 0, 0, 0.06));
    flex: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.slogan {
    height: 20px;
    width: auto;
    margin-left:-9px;
}

.header-icons {
    display: flex;
    gap: 20px;
    color: var(--header-icon, var(--header-text, inherit));
}

.header-icon {
    font-size: 1.2rem;
    color: inherit;
}

main {
    flex: 1;
    overflow-y: auto;
    background: var(--content-bg, transparent);
}

.feed {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.post-card {
    background-color: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 4px 15px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.06));
}

.post-content {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.post-dark {
    background-color: var(--post-dark-bg, var(--primary-color, #ffffff));
    color: var(--post-dark-text, var(--text-color, #111111));
}

.post-light {
    background-color: var(--post-light-bg, var(--secondary-color, #f3f0e6));
    color: var(--post-light-text, #111111);
}

.post-title {
    padding: 40px 20px 20px;
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.post-stat {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: 700;
    padding: 20px;
    color: var(--accent-color, #00ffe7);
}

.post-description {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--light-text, rgba(17, 17, 17, 0.7));
}

.post-title-accent {
    color: var(--accent-color, #00ffe7);
    font-family: var(--font-dancing-script), 'Dancing Script', cursive;
    font-size: 140%;
    display: block;
    margin-top: 8px;
}

.post-subtitle {
    padding: 0 20px 15px;
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.4;
}

.post-url {
    padding: 0 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background-color: var(--footer-bg, var(--primary-color, #ffffff));
    border-top: 1px solid var(--footer-border, rgba(0, 0, 0, 0.04));
}

.post-action {
    font-size: 1.25rem;
    color: var(--footer-icon, #888888);
}

.post-pill {
    position: absolute;
    top: 30px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-counter {
    border: 2px solid var(--accent-color, #00ffe7);
    padding: 25px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 20px;
    font-size: 32px;
    font-weight: 600;
}

.post-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-color, #00ffe7);
}

.post-quote {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    padding: 30px 20px 80px;
}

.highlight {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

.post-feature-list {
    list-style: none;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
}

.post-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-feature-item::before {
    content: '\\2022';
    font-size: 24px;
    color: var(--accent-color, #00ffe7);
}

.post-file-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.file-option {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.social-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.accent-mark {
    position: absolute;
    font-family: var(--font-dancing-script), 'Dancing Script', cursive;
    font-size: 32px;
    color: var(--accent-color, #00ffe7);
    opacity: 0.4;
}

.accent-scribble {
    position: absolute;
    font-family: var(--font-dancing-script), 'Dancing Script', cursive;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
}

.accent-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 231, 0.3);
    background: rgba(0, 255, 231, 0.08);
    filter: blur(0.4px);
    pointer-events: none;
}

.arrow-annotation {
    position: absolute;
    width: 120px;
    bottom: 40px;
    right: 30px;
    transform: rotate(-6deg);
    opacity: 0.65;
    pointer-events: none;
}

.post-badges {
    display: flex;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

.post-cta {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.cta-button {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.12);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

.bottom-nav {
    background-color: var(--nav-bg, var(--primary-color, #ffffff));
    border-top: 1px solid var(--nav-border, rgba(0, 0, 0, 0.08));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 0;
    flex: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--nav-text, #888888);
    padding: 6px 4px;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item.active {
    color: var(--nav-active-text, var(--accent-color, #00ffe7));
}

.nav-item.active i {
    color: inherit;
}

.nav-item:active {
    transform: scale(0.95);
}

.post-tags {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.post-tag {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
}

.post-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
}

.statistic-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.statistic-value {
    font-size: 24px;
    font-weight: 700;
}

.statistic-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.post-checklist {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checklist-item i {
    color: var(--accent-color, #00ffe7);
}

.post-progress {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-color, #00ffe7), rgba(0, 255, 231, 0.4));
    border-radius: inherit;
}

.post-reminder {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reminder-time {
    font-weight: 600;
    font-size: 16px;
}

.reminder-title {
    font-size: 14px;
    opacity: 0.8;
}

.post-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(70% - 12px);
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    scroll-snap-align: center;
}

.carousel-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.post-avatar {
    position: absolute;
    top: 30px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.avatar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-name {
    font-weight: 600;
}

.avatar-role {
    font-size: 12px;
    opacity: 0.7;
}

.chip-group {
    position: absolute;
    top: 30px;
    left: 20px;
    display: flex;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 50%, rgba(0, 0, 0, 0.5));
}

.post-heading {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 700;
}

.post-caption {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    opacity: 0.85;
}

.post-gradient {
    background: var(--post-gradient, linear-gradient(135deg, rgba(0, 255, 231, 0.14), transparent 65%));
}

.post-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.bento-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-card span {
    font-size: 12px;
    opacity: 0.7;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 36px 28px 28px;
    text-align: center;
}

.home-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(0, 255, 231, 0.12);
    color: var(--accent-color, #00ffe7);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.home-title {
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.home-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--light-text, rgba(17, 17, 17, 0.7));
    max-width: 260px;
}

.home-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    padding: 14px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: inherit;
}

.home-button.primary {
    background: linear-gradient(135deg, var(--accent-color, #00ffe7), rgba(0, 255, 231, 0.7));
    color: #0b1f1c;
    box-shadow: 0 12px 24px rgba(0, 255, 231, 0.25);
}

.home-button.secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-button:active {
    transform: scale(0.97);
}

.home-section {
    padding: 0 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.home-grid {
    display: grid;
    gap: 16px;
}

.home-card {
    background-color: var(--card-bg, #ffffff);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.05));
    box-shadow: var(--card-shadow, 0 6px 18px rgba(0, 0, 0, 0.08));
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.home-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: rgba(0, 255, 231, 0.15);
    color: var(--accent-color, #00ffe7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-card-title {
    font-size: 16px;
    font-weight: 600;
}

.home-card-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--light-text, rgba(17, 17, 17, 0.7));
}

.home-preview {
    padding: 0 24px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-preview-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.home-preview-link {
    min-width: 160px;
    border-radius: 18px;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.05));
    background-color: var(--card-bg, #ffffff);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--card-shadow, 0 8px 20px rgba(0, 0, 0, 0.1));
    text-decoration: none;
    color: inherit;
}

.home-preview-link span {
    font-size: 12px;
    color: var(--light-text, rgba(17, 17, 17, 0.6));
}

.home-preview-link strong {
    font-size: 16px;
}

.home-preview-link.dark {
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.home-preview-link.light {
    background: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.85));
}

@media (min-width: 420px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-preview-link {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .app-shell {
        border-radius: 0;
        min-height: 100vh;
    }
}
