/* هایلایت ایزوله - بدون تاثیر روی بقیه */
.dmh-highlights-fixed {
    margin: 0;               /* فاصله از کناره ها صفر */
    padding: 20px 0;         /* فاصله بالا و پایین */
    background: none;        /* هیچ بکگراندی */
    overflow-x: auto;        /* اسکرول افقی */
    width: 100vw;            /* از چپ تا راست کل صفحه */
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
}

.dmh-highlights-fixed::-webkit-scrollbar {
    height: 6px;
}

.dmh-highlights-fixed::-webkit-scrollbar-thumb {
    background: rgba(201,161,91,0.3);
    border-radius: 10px;
}@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

/* ======= بک‌گراند ستاره‌ای ======= */
.dmh-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.dmh-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: dmhMoveStar linear infinite;
}

@keyframes dmhMoveStar {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-1200px) translateX(500px); }
}

/* ======= صفحه اصلی ======= */
.dmh-instagram-page {
    font-family: 'Vazirmatn', sans-serif;
    background: radial-gradient(circle at 50% 50%, #F5E8D0, #8FA78F, #D4B16A);
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

.dmh-instagram-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= مخفی کردن هدر در Feed ======= */
.dmh-home-feed .dmh-profile-header {
    display: none !important;
}

/* ======= هدر بالای صفحه کامل ======= */
.dmh-top-header {
    background: linear-gradient(135deg, #C9A15B, #D4B16A);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dmh-top-header .dmh-menu-icon,
.dmh-top-header .dmh-lang-icon {
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.dmh-top-header .dmh-menu-icon:hover,
.dmh-top-header .dmh-lang-icon:hover {
    background: rgba(255,255,255,0.2);
}

/* ======= هدر پروفایل ======= */
.dmh-profile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: dmhFadeInUp 0.6s ease;
}

@keyframes dmhFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dmh-profile-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.dmh-profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dmh-profile-avatar-wrapper:hover {
    transform: scale(1.05);
}

.dmh-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #C9A15B;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(201, 161, 91, 0.3);
}

.dmh-profile-details {
    flex: 1;
}

.dmh-profile-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #4A4A4A;
    margin: 0 0 10px 0;
}

.dmh-profile-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.dmh-stat-item {
    text-align: center;
}

.dmh-stat-number {
    font-size: 1.3em;
    font-weight: 700;
    color: #C9A15B;
    display: block;
}

.dmh-stat-label {
    color: #999;
    font-size: 0.85em;
}

.dmh-profile-bio {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* ======= هایلایت بدون باکس ======= */

.dmh-highlights-section {
    margin: 0 -20px 20px -20px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dmh-highlights-section::-webkit-scrollbar {
    height: 6px;
}

.dmh-highlights-section::-webkit-scrollbar-thumb {
    background: rgba(201,161,91,0.3);
    border-radius: 10px;
}

/* ======= گرید پست‌ها ======= */
.dmh-posts-grid {
    display: grid;
    gap: 4px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .dmh-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .dmh-posts-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .dmh-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .dmh-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======= کارت پست ======= */
.dmh-post-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: dmhFadeInUp 0.6s ease;
}

.dmh-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dmh-post-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dmh-post-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C9A15B;
}

.dmh-post-user {
    flex: 1;
}

.dmh-post-username {
    font-weight: 700;
    color: #4A4A4A;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.dmh-post-time {
    font-size: 11px;
    color: #999;
}

.dmh-post-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 767px) {
    .dmh-post-image {
        height: 300px;
    }
}

.dmh-post-actions {
    padding: 12px 15px;
    display: flex;
    gap: 15px;
}

.dmh-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4A4A4A;
}

.dmh-action-btn:hover {
    transform: scale(1.1);
}

.dmh-action-btn.liked {
    color: #e74c3c;
    animation: dmhLikePulse 0.4s ease;
}

@keyframes dmhLikePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.dmh-action-count {
    font-size: 13px;
    color: #4A4A4A;
    font-weight: 600;
}

.dmh-post-caption {
    padding: 0 15px 12px 15px;
}

.dmh-caption-username {
    font-weight: 700;
    color: #4A4A4A;
    margin-left: 6px;
}

.dmh-caption-text {
    color: #4A4A4A;
    line-height: 1.5;
    font-size: 14px;
}

.dmh-caption-text .hashtag {
    color: #4d99d6;
    font-size: 11px;
}

.dmh-caption-more {
    color: #999;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    text-decoration: none;
}

.dmh-caption-more:hover {
    color: #4A4A4A;
}

.dmh-caption-full {
    display: none;
}

.dmh-caption-full.show {
    display: inline;
}

.dmh-caption-short {
    display: inline;
}

/* ======= بخش کامنت‌ها ======= */
.dmh-comments-section {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dmh-comments-section.open {
    max-height: 800px;
    overflow-y: auto;
    padding-bottom: 15px;
}

.dmh-add-comment-form-top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.dmh-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dmh-comment-name-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
}

.dmh-comment-input-row {
    display: flex;
    gap: 8px;
}

@media (max-width: 767px) {
    .dmh-comment-input-row {
        flex-direction: column;
    }
}

.dmh-comment-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    resize: vertical;
    min-height: 40px;
    max-height: 120px;
}

.dmh-comment-input:focus,
.dmh-comment-name-input:focus {
    outline: none;
    border-color: #C9A15B;
}

.dmh-comment-submit-btn {
    background: linear-gradient(135deg, #C9A15B, #D4B16A);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .dmh-comment-submit-btn {
        width: 100%;
        padding: 12px;
    }
}

.dmh-comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 161, 91, 0.4);
}

.dmh-comment-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dmh-comment-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dmh-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dmh-comment-content {
    flex: 1;
}

.dmh-comment-username {
    font-weight: 700;
    color: #4A4A4A;
    font-size: 13px;
    margin-left: 6px;
}

.dmh-comment-text {
    color: #4A4A4A;
    font-size: 13px;
    line-height: 1.4;
}

.dmh-comment-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.dmh-comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
}

.dmh-comment-like-btn:hover,
.dmh-comment-like-btn.liked {
    color: #e74c3c;
}

.dmh-show-more-comments {
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 0;
    display: block;
    text-decoration: none;
}

.dmh-show-more-comments:hover {
    color: #4A4A4A;
}

.dmh-comment-item.hidden {
    display: none;
}

/* ======= دکمه نمایش بیشتر ======= */
.dmh-load-more {
    text-align: center;
    margin: 40px 0;
}

.dmh-load-more-btn {
    background: linear-gradient(135deg, #8FA78F, #7A9C7A);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(122, 156, 122, 0.3);
}

.dmh-load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(122, 156, 122, 0.5);
}

/* ======= Responsive ======= */
@media (max-width: 767px) {
    .dmh-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dmh-profile-avatar {
        width: 80px;
        height: 80px;
    }

    .dmh-profile-name {
        font-size: 1.3em;
    }

    .dmh-profile-stats {
        justify-content: center;
        gap: 20px;
    }

    .dmh-stat-number {
        font-size: 1.1em;
    }
}