/* Основные стили для InstaBlog */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
    line-height: 1.4;
}

/* Навигационная панель */
.navbar {
    background: white;
    border-bottom: 1px solid #dbdbdb;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 975px;
    margin: 0 auto;
    padding: 0 20px;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #262626;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand i {
    color: #0095f6;
}

.nav-search input {
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    padding: 6px 10px;
    width: 200px;
    font-size: 14px;
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a {
    color: #262626;
    font-size: 1.2rem;
    text-decoration: none;
}

/* Основной контейнер */
.main-container {
    max-width: 975px;
    margin: 84px auto 0;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* Лента постов */
.feed {
    flex: 2;
}

.feed h1 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.post {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    margin-bottom: 30px;
}

.post-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-image img {
    width: 100%;
    display: block;
}

.post-actions {
    padding: 10px 16px;
    display: flex;
    gap: 15px;
}

.post-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #262626;
    cursor: pointer;
}

.post-caption {
    padding: 0 16px 16px;
}

/* Боковая панель */
.sidebar {
    flex: 1;
    position: sticky;
    top: 84px;
}

.profile-card {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.btn-switch {
    color: #0095f6;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Подвал */
.footer {
    text-align: center;
    padding: 20px;
    color: #8e8e8e;
    font-size: 0.9rem;
    border-top: 1px solid #dbdbdb;
    margin-top: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .nav-search {
        display: none;
    }
    
    .main-container {
        margin-top: 54px;
    }
}
