:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.header-bg {
    height: 200px;
    background-image: url('img/buttes.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.profile-info {
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -50px;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 4px solid var(--bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background-color: #fff;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-logo:hover {
    transform: scale(1.05);
}

.profile-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.profile-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Post Cards */
.post {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.post:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-content {
    font-size: 0.95rem;
    color: #c9d1d9;
}

.post-content p {
    margin-bottom: 12px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* Formatted Elements within Markdown */
.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-primary);
}

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

.post-content a:hover {
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading.active {
    opacity: 1;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--card-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}