/* retoor <retoor@molodetz.nl> */

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-greeting {
    font-size: 1.15rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.dashboard-greeting strong {
    color: var(--accent);
}

.dashboard-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-btn {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.dashboard-btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    font-weight: 700;
    padding: 0.55rem 1.5rem;
}

.dashboard-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
}

.dashboard-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.dashboard-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.dashboard-stat-level {
    min-width: 140px;
}

.dashboard-xp-bar {
    width: 100%;
    max-width: 120px;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.15rem;
}

.dashboard-xp-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.dashboard-xp-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

.dashboard-feed {
    min-width: 0;
}

.dashboard-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.dashboard-feed-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-feed-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.dashboard-feed-link:hover {
    color: var(--accent-hover);
}

.dashboard-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.875rem;
}

.dashboard-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-post-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.dashboard-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-post-author-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dashboard-post-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-post-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dashboard-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.dashboard-post-title a {
    color: var(--text-primary);
}

.dashboard-post-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.dashboard-post-content {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-post-footer {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.dashboard-post-stat {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-post-open {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: auto;
}

.dashboard-post-open:hover {
    color: var(--accent-hover);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5rem;
}

.dashboard-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.1rem;
}

.dashboard-sidebar-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.dashboard-sidebar-link {
    display: inline-block;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.dashboard-sidebar-link:hover {
    color: var(--accent-hover);
}

.dashboard-contributor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.dashboard-contributor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-contributor-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dashboard-contributor-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-contributor-stars {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.dashboard-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.15s ease;
}

.dashboard-tag:hover {
    border-color: var(--accent);
}

.dashboard-tag-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    .dashboard-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 1rem 0.75rem 0;
    }
    .dashboard-top {
        padding: 1rem;
    }
    .dashboard-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .dashboard-buttons {
        width: 100%;
    }
    .dashboard-btn {
        flex: 1;
        text-align: center;
    }
    .dashboard-stats {
        width: 100%;
        justify-content: space-around;
    }
    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
    .dashboard-greeting {
        white-space: normal;
    }
}

.landing {
    min-height: 100vh;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

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

.landing-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.landing-cta {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}

.landing-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
}

.landing-feature {
    text-align: center;
    padding: 1rem;
}

.landing-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.landing-feature h3 {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.landing-feature p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: var(--space-xs) 0 0;
    line-height: 1.4;
}

.landing-feature p a {
    color: var(--accent);
}

.landing-auth-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.landing-auth-link a {
    color: var(--accent);
    font-weight: 600;
}

.landing-hero-user {
    gap: 1.25rem;
}

.landing-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-welcome-text {
    text-align: left;
}

.landing-welcome-eyebrow {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.landing-welcome-context {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.landing-action-primary {
    padding: 0.7rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.9375rem;
    font-weight: 700;
}

.landing-action-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.landing-action-secondary {
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.landing-action-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.landing-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.landing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.landing-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.landing-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.landing-stat-level {
    min-width: 160px;
}

.landing-xp-bar {
    width: 100%;
    max-width: 140px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.landing-xp-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.landing-xp-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.landing-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.landing-quicklinks a {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.landing-quicklinks a:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .landing-welcome-eyebrow {
        font-size: 1.25rem;
    }
    .landing-stats {
        gap: 1.5rem;
    }
    .landing-quicklinks {
        width: 100%;
    }
}

.landing-section {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.landing-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.landing-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.landing-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.landing-section-link:hover {
    color: var(--accent-hover);
}

.landing-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.landing-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.landing-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-post-author-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.landing-post-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.landing-post-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.landing-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.landing-post-title a {
    color: var(--text-primary);
}

.landing-post-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.landing-post-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-post-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.landing-post-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.landing-post-open {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: auto;
}

.landing-post-open:hover {
    color: var(--accent-hover);
}

.landing-footer {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.landing-footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.landing-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.landing-footer-links a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.landing-footer-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2rem;
    }
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-section {
        padding: 0 1rem;
    }
    .landing-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .landing-features {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding: 2rem 1rem;
    }

    .landing-hero h1 {
        font-size: 1.75rem;
    }

    .landing-hero p {
        font-size: 1rem;
    }

    .landing-cta {
        width: 100%;
        text-align: center;
    }

    .landing-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
}

.landing-help-intro {
    max-width: 760px;
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-help-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-help-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.landing-help-card-lead {
    border-color: var(--accent);
}

.landing-help-icon {
    font-size: 1.75rem;
}

.landing-help-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.landing-help-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-help-link {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-help-link:hover {
    text-decoration: underline;
}

.landing-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.landing-help-links a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-help-links a:hover {
    text-decoration: underline;
}

.landing-help-cta {
    margin-top: auto;
    align-self: flex-start;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.landing-help-cta:hover {
    filter: brightness(1.08);
}

@media (max-width: 480px) {
    .landing-help-grid {
        grid-template-columns: 1fr;
    }

    .landing-help-cta {
        width: 100%;
        text-align: center;
    }
}

.landing-game {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.landing-game-dashboard {
    max-width: 1200px;
    padding: 0 1.25rem;
    margin-top: 2rem;
}

.landing-game-body {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.landing-game-glow {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 280px;
    background: radial-gradient(circle at 50% 0%, var(--accent) 0%, transparent 70%);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.landing-game-body > * {
    position: relative;
    z-index: 1;
}

.landing-game-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.landing-game-title {
    margin: 0 0 0.75rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.landing-game-title span {
    color: var(--text-secondary);
    font-weight: 600;
}

.landing-game-tagline {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
}

.landing-game-crops {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
}

.landing-game-points {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.landing-game-points li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-game-points li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.landing-game-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.landing-game-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .landing-game-title {
        font-size: 1.5rem;
    }

    .landing-game-cta {
        width: 100%;
        justify-content: center;
    }
}
