/* Instagram App Styles */
.instagram-app {
    background-color: #fff;
    color: #262626;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ig-header {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.ig-logo {
    font-family: 'Gaegu', cursive; /* Using Gaegu as a placeholder for script font */
    font-size: 24px;
    font-weight: bold;
}

.ig-header-actions {
    display: flex;
    gap: 20px;
    font-size: 22px;
}

.ig-content {
    flex: 1;
    overflow-y: auto;
}

.ig-tab-page {
    display: none;
}

.ig-tab-page.active {
    display: block;
}

/* Post Item */
.ig-post {
    margin-bottom: 15px;
    border-bottom: 1px solid #efefef;
}

.ig-post-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.ig-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid #dbdbdb;
}

.ig-username {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.ig-post-img {
    width: 100%;
    aspect-ratio: 1; /* Square posts */
    background-color: #fafafa;
    background-size: cover;
    background-position: center;
}

.ig-post-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 24px;
}

.ig-action-left {
    display: flex;
    gap: 15px;
}

.ig-likes {
    padding: 0 15px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.ig-caption {
    padding: 0 15px;
    font-size: 14px;
    margin-bottom: 5px;
}

.ig-caption span {
    font-weight: 600;
    margin-right: 5px;
}

.ig-time {
    padding: 0 15px 10px;
    font-size: 10px;
    color: #8e8e8e;
    text-transform: uppercase;
}

/* Search Grid */
.ig-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding-bottom: 100px; /* Add padding for bottom nav */
}

.ig-grid-item {
    width: 100%;
    aspect-ratio: 1;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Profile */
.ig-profile-header {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ig-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border: 1px solid #dbdbdb;
}

.ig-profile-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.ig-stat-num {
    font-weight: 600;
    font-size: 16px;
    display: block;
}

.ig-stat-label {
    font-size: 12px;
    color: #262626;
}

.ig-profile-bio {
    padding: 0 15px 15px;
    font-size: 14px;
}

.ig-profile-name {
    font-weight: 600;
}

.ig-edit-profile {
    margin: 0 15px 15px;
    padding: 5px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Bottom Nav */
.ig-nav-bar {
    height: 48px;
    border-top: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    font-size: 24px;
}

.ig-nav-item {
    cursor: pointer;
}

.ig-nav-item.active {
    color: #000;
}

/* Create Post Modal */
.ig-create-modal {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ig-create-header {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #dbdbdb;
    font-weight: 600;
}

.ig-create-preview {
    width: 100%;
    aspect-ratio: 1;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8e8e8e;
    font-size: 40px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.ig-create-caption {
    padding: 15px;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    flex: 1;
    outline: none;
}

/* Text Post Mode */
.ig-text-mode {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* New Styles */
#igFilters {
    scrollbar-width: none;
}
#igFilters::-webkit-scrollbar {
    display: none;
}
