/* Основные стили */
.profile-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: aliceblue;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Шапка профиля */
.profile-header {
    display: flex;
    gap: 40px;
    background: rgba(15, 16, 22, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(173, 255, 47, 0.2);
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #ADFF2F;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.profile-avatar:hover img {
    transform: scale(1.02);
}

.posts-count {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ADFF2F;
    color: rgb(15, 16, 22);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Информация о пользователе */
.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2.5rem;
    margin: 0 0 20px;
    color: #ADFF2F;
    font-family: 'Courier New', monospace;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.meta-icon {
    font-size: 1.3rem;
}

/* Блок "О себе" */
.profile-about {
    margin: 40px 0;
    background: rgba(15, 16, 22, 0.8);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(173, 255, 47, 0.2);
}

.section-title {
    color: #ADFF2F;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ADFF2F, transparent);
}

.about-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Список статей */
.profile-posts {
    margin: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.post-card {
    background: rgba(15, 16, 22, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: aliceblue;
    border: 1px solid rgba(173, 255, 47, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(173, 255, 47, 0.2);
    border-color: rgba(173, 255, 47, 0.4);
}

.post-image {
    height: 160px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-title {
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.post-card:hover .post-title {
    color: #ADFF2F;
}

.post-date {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: rgba(240, 248, 255, 0.7);
}

/* Кнопки действий */
.profile-actions {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    justify-content: center;
}

.action-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.edit-btn {
    background: #ADFF2F;
    color: rgb(15, 16, 22);
    border: 2px solid #ADFF2F;
}

.logout-btn {
    background: transparent;
    color: #ADFF2F;
    border: 2px solid #ADFF2F;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(173, 255, 47, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar img {
        width: 200px;
        height: 200px;
    }
    
    .profile-meta {
        align-items: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}