/* Стилі для сторінки Feed з білим фоном та боковими панелями правил композиції */
body {
    background-color: #ffffff;
    background-image: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Бокові панелі з правилами композиції (зліва та справа) */
.composition-sidebar {
    position: fixed;
    top: 85px;
    width: 175px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.composition-sidebar-left {
    left: 20px;
}

.composition-sidebar-right {
    right: 20px;
}

.composition-rule-card {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 0;
    transition: none;
}

.composition-rule-card:hover {
    transform: none;
}

.composition-rule-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.68rem;
    font-weight: bold;
    color: #333;
    margin-top: 4px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.composition-rule-svg {
    width: 100%;
    height: 85px; /* Компактна висота, щоб усі 4 правила ідеально поміщалися на екран */
    background: transparent;
    border-radius: 6px;
    border: none;
}

/* Приховуємо бокові панелі лише на мобільних та малих планшетах (менше 991px) */
@media (max-width: 991px) {
    .composition-sidebar {
        display: none !important;
    }
}

/* Стилі для профільного блоку */
.profile-compact-header {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.profile-bg-banner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.profile-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}
.profile-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    z-index: 2;
    position: relative;
}
.profile-info {
    z-index: 2;
    position: relative;
    flex-grow: 1;
    color: white;
}
.profile-info h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Анімація появи карток */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.feed-card {
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease;
}
/* Ефект при наведенні */
.feed-card:hover {
    transform: scale(1.01);
}
/* Контейнер для фото */
.card-img-wrapper {
    display: flex;
    justify-content: center;
    padding: 0;
}
.card-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* Стиль блоку автора */
.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-right: 15px;
}
.avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}
.username { font-weight: bold; font-size: 0.9rem; }
.timestamp { font-size: 0.75rem; color: #6c757d; }

/* Стиль для кружечків дій */
.post-actions {
    display: flex;
    flex-direction: row !important;
    gap: 15px;
    width: auto;
}
.action-circle {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.action-circle:hover {
    background-color: #adb5bd;
    color: white;
    border-color: #adb5bd;
}
.action-count {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Стиль для овального заголовка */
.title-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20rem;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
