/* Mockup Engine Styles */

/* --- Clean Up & Resets --- */
.mockup-container * {
    box-sizing: border-box;
}

.mockup-hidden {
    display: none;
}

.mockup-show {
    display: block;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.width100 {
    width: 100%;
    display: inline-block;
    position: relative;
}

.text-center {
    text-align: center;
}

.margin-0 {
    margin: 0 !important;
}

.padding-0 {
    padding: 0 !important;
}

.pos-relative {
    position: relative;
}

/* --- Sidebar Tabs --- */
.nav-tabs {
    border-bottom: none;
    margin-bottom: 15px;
    width: 100%;
}

.nav-tabs>li {
    width: 50%;
    text-align: center;
    float: left;
    margin-bottom: -1px;
}

.nav-tabs>li>a {
    line-height: 1.4;
    position: relative;
    display: block;
    padding: 12px 15px;
    border: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 0;
    border-bottom: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-tabs>li.active>a {
    background-color: #f1f5f9;
    color: #0f172a;
    border-bottom: 2px solid #4f46e5;
}

.dark .nav-tabs>li.active>a {
    background-color: #1e293b;
    color: #f8fafc;
    border-bottom: 2px solid #6366f1;
}

.dark .nav-tabs>li>a {
    border-bottom: 1px solid #334155;
    color: #94a3b8;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Forms & Inputs --- */
.mockup-label {
    width: 100%;
    text-align: left;
    position: relative;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    display: block;
}

.dark .mockup-label {
    color: #94a3b8;
}

.mockup-label span {
    width: 4px;
    height: 12px;
    float: left;
    background-color: #4f46e5;
    margin-right: 6px;
    border-radius: 2px;
    margin-top: 2px;
}

.input_div {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.mockup-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    outline: 0;
    font-size: 13px;
    background: #fff;
    color: #1e293b;
    transition: border 0.2s;
}

.dark .mockup-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.mockup-input:focus {
    border-color: #4f46e5;
}

textarea.mockup-input {
    resize: vertical;
    min-height: 80px;
}

.radio_label {
    display: inline-flex;
    align-items: center;
    width: 48%;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    margin-bottom: 5px;
}

.dark .radio_label {
    color: #cbd5e1;
}

.radio_label input {
    margin-right: 6px;
}

/* --- Icons --- */
.emoji_icon {
    float: right;
    position: absolute;
    right: 8px;
    top: -25px;
    /* Adjust based on layout */
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

/* --- Mockup Preview Styling (The "Instagram" Look) --- */
.post_main_area {
    background-color: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mockup Theme Isolation - Force specific colors regardless of site theme */
#mockup-transformer.theme.dark .post_main_area {
    background-color: #000 !important;
    color: #ffffff !important;
    border: 1px solid #262626;
}

#mockup-transformer.theme.light .post_main_area {
    background-color: #ffffff !important;
    color: #262626 !important;
    border: 1px solid #dbdbdb;
}

/* Ensure all text children inside mockup use the forced parent color */
.post_main_area,
.post_main_area span,
.post_main_area div,
.post_main_area p,
.post_main_area a,
.post_main_area b,
.post_main_area strong {
    color: inherit !important;
}

/* Exceptions: specifically colored icons or tags */
.post_main_area .txt-follow {
    color: #0095f6 !important;
}

.post_main_area .txt-following {
    color: #8e8e8e !important;
}

.post_main_area .verified-icon svg,
.post_main_area .verify-simple-icon svg {
    fill: #0095f6 !important;
}

.post_main_area .post_date,
.post_main_area .view_all_comments_input,
.post_main_area .more-link {
    opacity: 0.6;
}

/* Force RED for Liked state regardless of theme reset */
.post_main_area svg[aria-label="Unlike"] {
    color: #ed4956 !important;
    fill: #ed4956 !important;
}

.post_main_area svg:not(.verified-icon svg):not(.verify-simple-icon svg):not([aria-label="Unlike"]) {
    color: inherit !important;
    fill: currentColor !important;
}

/* Header */
.header_post {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    justify-content: flex-start;
}

/* Story Ring Styling */
.profile-pic {
    width: 32px;
    height: 32px;
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring-visual {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    /* Gap between ring and avatar */
    display: none;
}

.story-ring-visual.public {
    display: block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.story-ring-visual.private {
    display: block;
    background: #58c038;
    /* Instagram Close Friends Green */
}

/* Inner gap to make it look like a ring */
.story-ring-visual::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    /* Match background for gap */
}

.theme.dark .story-ring-visual::after {
    background: #000;
}

.profile-pic img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.head_title {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name_area_row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.account_name {
    font-weight: 600;
    color: inherit;
    display: inline-block;
}

.verified-icon,
.verify-simple-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0095f6;
}

.location_ {
    display: block;
    font-size: 11px;
    color: inherit;
    opacity: 0.8;
}

.follow-unfollow {
    font-weight: 600;
    margin-left: 5px;
    cursor: pointer;
}

.txt-follow {
    color: #0095f6;
}

.txt-following {
    color: #8e8e8e;
}

.dots_icon {
    margin-left: auto;
    color: #262626;
}

.theme.dark .dots_icon {
    color: #f5f5f5;
}

/* Post Image */
.post_image {
    width: 100%;
    display: block;
    background: transparent;
    line-height: 0;
}

.post_image img {
    width: 100%;
    display: block;
    border: none !important;
    outline: none !important;
}

/* Footer Actions */
.like_unlike_div {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-icons {
    display: flex;
    gap: 16px;
}

.right-icons {}

.theme.dark svg:not([aria-label="Unlike"]) {
    fill: #f5f5f5;
    color: #f5f5f5;
}

.theme.light svg:not([aria-label="Unlike"]) {
    fill: #262626;
    color: #262626;
}

/* Likes & Caption */
.post_footer {
    padding: 0 12px 12px;
    font-size: 14px;
}

.liked_by {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: inherit;
}

.description_area {
    display: inline;
    color: inherit;
}

.more-link {
    color: #8e8e8e;
    cursor: pointer;
}

.view_all_comments_input {
    color: #8e8e8e;
    margin-top: 6px;
    display: block;
    cursor: pointer;
}

.post_date {
    font-size: 10px;
    color: #8e8e8e;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

/* Comments */
.added_comments {
    margin-top: 4px;
}

.added_comments .width100 {
    margin-bottom: 4px;
}

.added_comments .bold {
    font-weight: 600;
    margin-right: 5px;
}

/* Add Comment Section */
.add_comments_area {
    border-top: 1px solid #efefef;
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    align-items: center;
}

.theme.dark .add_comments_area {
    border-top-color: #262626;
}

.comment_image_div {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.comment_image_div img {
    border-radius: 50%;
    width: 100%;
}

.add_a_comment {
    color: #8e8e8e;
    font-size: 14px;
}

/* Utilities */
.bold {
    font-weight: 600;
}

.link {
    color: #00376b;
}

.theme.dark .link {
    color: #e0f1ff;
}

/* Hidden upload inputs */
input[type="file"].hidden {
    display: none;
}