/* ============================================================
   FOWLSTYLE – INSTAGRAM‑STYLE THEME
   Complete CSS – no external dependencies except Font Awesome
   ============================================================ */

/* ---------- VARIABLES (Instagram colour palette) ---------- */
:root {
    --ig-bg: #fafafa;
    --ig-white: #ffffff;
    --ig-border: #dbdbdb;
    --ig-text: #262626;
    --ig-muted: #8e8e8e;
    --ig-accent: #0095f6;
    --ig-red: #ed4956;
    --ig-nav-height: 54px;
    --ig-bottom-nav: 44px;
    --ig-radius: 4px;
    --ig-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---------- RESET & BASE ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--ig-bg);
    color: var(--ig-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--ig-bottom-nav);
}

a {
    color: var(--ig-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- UTILITY ---------- */
.hidden {
    display: none !important;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.fowlstyle-main-shell {
    display: flex;
    max-width: 935px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 32px;
}

.fowlstyle-feed-column {
    flex: 1;
    max-width: 600px;
}

.fowlstyle-sidebar-column {
    width: 293px;
    flex-shrink: 0;
}

/* ---------- TOP NAVIGATION (Sticky) ---------- */
.fowlstyle-topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ig-white);
    border-bottom: 1px solid var(--ig-border);
    height: var(--ig-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.fowlstyle-logo {
    font-family: 'Grand Hotel', cursive;
    font-size: 28px;
    color: var(--ig-text);
    text-decoration: none !important;
}

.fowlstyle-search-form {
    display: flex;
    align-items: center;
    background: var(--ig-bg);
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    padding: 2px 10px;
}
.fowlstyle-search-form input {
    border: none;
    outline: none;
    background: transparent;
    width: 160px;
    font-size: 14px;
}
.fowlstyle-search-form button {
    background: none;
    border: none;
    color: var(--ig-muted);
    cursor: pointer;
}

.fowlstyle-nav-icons {
    display: flex;
    gap: 22px;
    align-items: center;
}
.fowlstyle-nav-icons a,
.fowlstyle-nav-icons button {
    background: none;
    border: none;
    color: var(--ig-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    position: relative;
}
.fowlstyle-nav-icons img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- DROPDOWN MENUS ---------- */
.fowlstyle-dropdown {
    position: absolute;
    top: calc(var(--ig-nav-height) + 6px);
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 220px;
    z-index: 1100;
    padding: 8px 0;
}

.fowlstyle-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--ig-text);
    font-size: 14px;
}
.fowlstyle-dropdown a:hover {
    background: var(--ig-bg);
    text-decoration: none;
}

/* Activity dropdown (heart icon) */
.activity-dropdown {
    right: 80px;
}

/* Profile dropdown (avatar) */
.profile-dropdown {
    right: 20px;
}

/* ---------- MOBILE BOTTOM DOCK ---------- */
.fowlstyle-mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ig-bottom-nav);
    background: var(--ig-white);
    border-top: 1px solid var(--ig-border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
.fowlstyle-mobile-dock a {
    color: var(--ig-text);
    font-size: 22px;
    padding: 8px;
}
.fowlstyle-mobile-dock img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- LANDING / LOGIN PAGE ---------- */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}
.landing-left {
    flex: 1;
    max-width: 380px;
    margin-right: 40px;
    text-align: center;
}
.landing-left h1 {
    font-family: 'Grand Hotel', cursive;
    font-size: 52px;
    color: var(--ig-text);
}
.landing-left p {
    font-size: 16px;
    color: var(--ig-muted);
    margin-top: 10px;
}
.landing-right {
    width: 350px;
}
.landing-card {
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    padding: 40px;
    text-align: center;
}
.landing-card h2 {
    font-family: 'Grand Hotel', cursive;
    font-size: 40px;
    margin-bottom: 20px;
}
.landing-card input[type="text"],
.landing-card input[type="password"],
.landing-card input[type="email"] {
    width: 100%;
    padding: 10px 8px;
    margin-bottom: 8px;
    background: var(--ig-bg);
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    font-size: 14px;
}
.landing-card button {
    width: 100%;
    padding: 8px;
    background: var(--ig-accent);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--ig-radius);
    margin-top: 12px;
    cursor: pointer;
}
.landing-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: var(--ig-muted);
    font-size: 13px;
}
.landing-divider::before,
.landing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ig-border);
}
.landing-divider span {
    margin: 0 10px;
}

/* ---------- PROFILE HEADER ---------- */
.fowlstyle-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--ig-border);
}
.fowlstyle-avatar-wrapper {
    position: relative;
    cursor: pointer;
    margin-right: 60px;
    flex-shrink: 0;
}
.fowlstyle-avatar-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ig-border);
}
.fowlstyle-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.fowlstyle-avatar-wrapper:hover .fowlstyle-avatar-overlay {
    opacity: 1;
}
.fowlstyle-avatar-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
}

/* Profile stats */
.fowlstyle-profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}
.fowlstyle-profile-stat {
    font-size: 16px;
}
.fowlstyle-profile-stat strong {
    font-weight: 600;
}

/* ---------- PROFILE POST GRID ---------- */
.fowlstyle-profile-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.fowlstyle-profile-posts .grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #efefef;
}
.fowlstyle-profile-posts .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.fowlstyle-profile-posts .grid-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    background: transparent;
}
.fowlstyle-profile-posts .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.fowlstyle-profile-posts .grid-item:hover .grid-overlay {
    opacity: 1;
}

/* Video play icon in profile grid */
.fowlstyle-profile-posts .grid-item .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    opacity: 0.9;
}
.fowlstyle-profile-posts .grid-item .video-play-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ---------- FEED POST CARDS ---------- */
.fowlstyle-feed-wrapper {
    background: var(--ig-bg);
    padding: 20px 0;
}
.fowlstyle-feed-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.fowlstyle-feed-post {
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    width: 100%;
}

/* Post header */
.fowlstyle-feed-post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}
.fowlstyle-feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ig-border);
}
.fowlstyle-feed-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--ig-text);
    flex: 1;
}
.fowlstyle-feed-more {
    font-size: 18px;
    color: var(--ig-text);
    cursor: default;
}

/* Media */
.fowlstyle-feed-media-link {
    display: block;
    width: 100%;
    line-height: 0;
}
.fowlstyle-feed-media {
    background: #efefef;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.fowlstyle-feed-media img,
.fowlstyle-feed-media video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    background: #000;
}
.fowlstyle-feed-no-media {
    padding: 60px 0;
    text-align: center;
    color: var(--ig-muted);
    font-size: 14px;
}

/* Action buttons */
.fowlstyle-feed-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 4px;
    font-size: 24px;
}
.fowlstyle-feed-actions-left {
    display: flex;
    gap: 16px;
    align-items: center;
}
.fowlstyle-feed-actions-left button,
.fowlstyle-feed-actions-right button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    color: var(--ig-text);
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fowlstyle-feed-actions-left button:hover,
.fowlstyle-feed-actions-right button:hover {
    opacity: 0.6;
}

/* Like button red (fixed) */
.feed-like-btn.liked i {
    color: var(--ig-red);
}

/* Likes, caption, comments */
.fowlstyle-feed-likes {
    padding: 0 16px 4px;
    font-weight: 600;
    font-size: 14px;
}
.fowlstyle-feed-caption {
    padding: 0 16px 8px;
    font-size: 14px;
    line-height: 1.4;
}
.fowlstyle-feed-caption .fowlstyle-feed-username {
    margin-right: 6px;
}
.fowlstyle-feed-comments {
    padding: 0 16px 8px;
    font-size: 14px;
}
.fowlstyle-feed-comment {
    margin-bottom: 2px;
}
.fowlstyle-feed-comment .fowlstyle-feed-username {
    margin-right: 6px;
}
.feed-view-all-comments {
    color: var(--ig-muted);
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
}
.feed-view-all-comments:hover {
    text-decoration: underline;
}

/* Add comment form */
.fowlstyle-feed-add-comment {
    padding: 8px 16px 12px;
    border-top: 1px solid var(--ig-border);
}
.fowlstyle-feed-add-comment form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.feed-comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 6px 0;
    background: transparent;
    color: var(--ig-text);
}
.feed-comment-input::placeholder {
    color: var(--ig-muted);
}
.feed-comment-submit {
    background: none;
    border: none;
    color: var(--ig-accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s;
}
.feed-comment-submit.active {
    opacity: 1;
    pointer-events: auto;
}

/* Timestamp */
.fowlstyle-feed-timestamp {
    padding: 0 16px 12px;
    font-size: 10px;
    color: var(--ig-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Empty state */
.fowlstyle-feed-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--ig-muted);
}

/* ---------- SINGLE POST (standalone) ---------- */
.fowlstyle-single-post {
    max-width: 600px;
    margin: 30px auto;
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    overflow: hidden;
}
.fowlstyle-single-post .fowlstyle-post-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}
.fowlstyle-single-post .fowlstyle-post-header img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
.fowlstyle-single-post .fowlstyle-username {
    font-weight: 600;
    color: var(--ig-text);
    text-decoration: none;
    flex: 1;
}
.fowlstyle-follow-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--ig-accent);
    background: none;
    border: none;
    cursor: pointer;
}

/* Post image/video wrapper */
.fowlstyle-post-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #000;
}
.fowlstyle-post-image img,
.fowlstyle-post-image video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    background: #000;
}

.fowlstyle-single-post .fowlstyle-actions {
    display: flex;
    justify-content: space-between;
    padding: 4px 16px 0;
}
.fowlstyle-single-post .fowlstyle-actions .left-actions i,
.fowlstyle-single-post .fowlstyle-actions .right-actions i {
    font-size: 24px;
    margin-right: 16px;
    cursor: pointer;
    color: var(--ig-text);
}
.fowlstyle-single-post .fowlstyle-likes {
    padding: 0 16px;
    margin-top: 4px;
    font-weight: 600;
}
.fowlstyle-single-post .fowlstyle-caption {
    padding: 0 16px;
    margin-top: 4px;
}
.fowlstyle-single-post .fowlstyle-caption .username {
    font-weight: 600;
    margin-right: 4px;
}
.fowlstyle-single-post .fowlstyle-comments {
    padding: 0 16px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.fowlstyle-single-post .fowlstyle-comments .comment {
    margin-bottom: 4px;
}
.fowlstyle-single-post .fowlstyle-comments .comment .username {
    font-weight: 600;
    margin-right: 4px;
}
.fowlstyle-single-post .fowlstyle-timestamp {
    padding: 0 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ig-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.fowlstyle-single-post .fowlstyle-add-comment {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #efefef;
    margin-top: 4px;
}
.fowlstyle-single-post .fowlstyle-add-comment textarea {
    flex: 1;
    border: none;
    resize: none;
    font-size: 14px;
    outline: none;
}
.fowlstyle-single-post .fowlstyle-add-comment button {
    background: none;
    border: none;
    color: var(--ig-accent);
    font-weight: 600;
    cursor: pointer;
    padding-left: 8px;
    opacity: 0.3;
    pointer-events: none;
}
.fowlstyle-single-post .fowlstyle-add-comment button.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- SUGGESTIONS SIDEBAR ---------- */
.fowlstyle-suggestions-card {
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}
.fowlstyle-suggestions-card h4 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ig-text);
}
.fowlstyle-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.fowlstyle-suggestion-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.fowlstyle-suggestion-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.fowlstyle-follow-suggestion {
    background: var(--ig-accent);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.fowlstyle-follow-suggestion:hover {
    opacity: 0.8;
}
.fowlstyle-follow-suggestion.following {
    background: var(--ig-border);
    color: var(--ig-text);
}

/* ---------- STORY CAROUSEL ---------- */
.fowlstyle-story-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 20px;
    background: var(--ig-white);
    border-top: 1px solid var(--ig-border);
    border-bottom: 1px solid var(--ig-border);
    scrollbar-width: none;
}
.fowlstyle-story-carousel::-webkit-scrollbar {
    display: none;
}
.fowlstyle-story-carousel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--ig-text);
    flex: 0 0 72px;
}
.fowlstyle-story-carousel .story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.fowlstyle-story-carousel .story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ig-white);
    object-fit: cover;
}
.fowlstyle-story-carousel .story-username {
    font-size: 11px;
    margin-top: 4px;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- MODAL ---------- */
.fowlstyle-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}
.fowlstyle-modal-content {
    background: var(--ig-white);
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.fowlstyle-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: var(--ig-muted);
    line-height: 1;
}
.fowlstyle-modal-close:hover {
    color: var(--ig-text);
}
.fowlstyle-modal-content h3 {
    margin-bottom: 12px;
    font-weight: 600;
}
.fowlstyle-modal-content textarea {
    width: 100%;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}
.fowlstyle-modal-content button[type="submit"] {
    margin-top: 12px;
    background: var(--ig-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ig-radius);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.fowlstyle-modal-content button[type="submit"]:hover {
    opacity: 0.8;
}

/* ---------- PAGINATION ---------- */
.fowlstyle-pagination {
    text-align: center;
    padding: 20px 0;
}
.fowlstyle-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    color: var(--ig-text);
    background: var(--ig-white);
}
.fowlstyle-pagination .page-numbers.current {
    background: var(--ig-red);
    color: #fff;
    border-color: var(--ig-red);
}
.fowlstyle-pagination .page-numbers:hover {
    background: #f0f0f0;
}

/* ---------- MESSAGES PAGE ---------- */
.messages-container {
    max-width: 935px;
    margin: 30px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}
.conversations-list {
    width: 350px;
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}
.conversation-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #efefef;
    cursor: pointer;
    text-decoration: none;
    color: var(--ig-text);
}
.conversation-item:hover,
.conversation-item.active {
    background: var(--ig-bg);
}
.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
.conversation-info {
    flex: 1;
}
.conversation-name {
    font-weight: 600;
    font-size: 14px;
}
.conversation-preview {
    font-size: 13px;
    color: var(--ig-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.unread-badge {
    background: var(--ig-red);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
}

.chat-area {
    flex: 1;
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
}
.chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}
.chat-message.sent {
    align-self: flex-end;
    background: var(--ig-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-message.received {
    align-self: flex-start;
    background: #efefef;
    color: var(--ig-text);
    border-bottom-left-radius: 4px;
}
.chat-input-form {
    padding: 12px 16px;
    border-top: 1px solid #efefef;
    display: flex;
    gap: 10px;
}
.chat-input-form textarea {
    flex: 1;
    border: 1px solid var(--ig-border);
    border-radius: 20px;
    padding: 8px 16px;
    resize: none;
    font-size: 14px;
    outline: none;
    height: 40px;
}
.chat-input-form button {
    background: var(--ig-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
}
.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ig-muted);
    font-size: 16px;
}

/* ---------- CREATE POST ---------- */
.create-post-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    padding: 30px 20px;
}
.create-post-wrapper h2 {
    font-size: 22px;
    font-weight: 300;
    text-align: center;
    margin: 0 0 25px;
}
.preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
#media-preview,
#video-preview {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    object-fit: contain;
}
.upload-btn-wrapper {
    text-align: center;
    margin-bottom: 20px;
}
.upload-btn {
    background: var(--ig-accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--ig-radius);
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
}
.submit-btn {
    background: var(--ig-accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--ig-radius);
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.error-message {
    color: var(--ig-red);
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* ---------- MARKETPLACE (WooCommerce) ---------- */
.fowlstyle-marketplace {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.fowlstyle-marketplace h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--ig-text);
}

/* ---------- VIDEO CHAT PAGE ---------- */
.fowlstyle-video-chat-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--ig-white);
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    padding: 20px;
}
.fowlstyle-video-chat-container h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}
.fowlstyle-video-chat-container video {
    width: 100%;
    background: #000;
    border-radius: 8px;
}
.fowlstyle-video-chat-container .fowlstyle-btn {
    background: var(--ig-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ig-radius);
    cursor: pointer;
    font-weight: 600;
}
.fowlstyle-video-chat-container .fowlstyle-btn:hover {
    opacity: 0.8;
}

/* ---------- RESPONSIVE ---------- */

/* Desktop video sizing – Instagram style */
@media (min-width: 736px) {
    .fowlstyle-feed-media video,
    .fowlstyle-post-image video {
        width: 100%;
        height: auto;
        max-height: 600px;
        display: block;
        background: #000;
        object-fit: contain;
    }
}

/* Mobile styles (≤ 735px) */
@media (max-width: 735px) {
    /* Hide desktop top nav, show bottom dock */
    .fowlstyle-topnav {
        display: none !important;
    }
    .fowlstyle-mobile-dock {
        display: flex !important;
    }

    .landing-container {
        flex-direction: column;
    }
    .landing-left {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }
    .landing-right {
        width: 100%;
    }

    .fowlstyle-main-shell {
        flex-direction: column;
        padding: 0;
        margin-top: 0;
        gap: 0;
    }
    .fowlstyle-feed-column {
        max-width: 100%;
    }
    .fowlstyle-sidebar-column {
        display: none;
    }

    .fowlstyle-topnav .fowlstyle-search-form {
        display: none;
    }

    .fowlstyle-profile-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .fowlstyle-avatar-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .fowlstyle-avatar-wrapper img {
        width: 100px;
        height: 100px;
    }
    .fowlstyle-avatar-overlay {
        width: 100px;
        height: 100px;
    }
    .fowlstyle-avatar-file-input {
        width: 100px;
        height: 100px;
    }

    .fowlstyle-profile-posts {
        gap: 2px;
    }

    .fowlstyle-feed-wrapper {
        padding: 0;
    }
    .fowlstyle-feed-container {
        max-width: 100%;
        padding: 0;
    }
    .fowlstyle-feed-post {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 8px;
    }
    .fowlstyle-feed-post-header {
        padding: 10px 12px;
    }
    .fowlstyle-feed-avatar {
        width: 32px;
        height: 32px;
    }
    .fowlstyle-feed-actions {
        padding: 6px 12px 2px;
        font-size: 22px;
    }
    .fowlstyle-feed-actions-left {
        gap: 14px;
    }
    .fowlstyle-feed-actions-left button,
    .fowlstyle-feed-actions-right button {
        font-size: 22px;
    }
    .fowlstyle-feed-likes,
    .fowlstyle-feed-caption,
    .fowlstyle-feed-comments {
        padding-left: 12px;
        padding-right: 12px;
    }
    .fowlstyle-feed-add-comment {
        padding: 6px 12px 10px;
    }
    .fowlstyle-feed-timestamp {
        padding-left: 12px;
        padding-right: 12px;
    }
    .fowlstyle-feed-media img,
    .fowlstyle-feed-media video {
        max-height: 400px;
    }

    .messages-container {
        flex-direction: column;
    }
    .conversations-list {
        width: 100%;
    }
    .chat-area {
        width: 100%;
    }
    .fowlstyle-single-post {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 8px 0;
        max-width: 100%;
    }
    .fowlstyle-single-post .fowlstyle-post-image img,
    .fowlstyle-single-post .fowlstyle-post-image video {
        max-height: 400px;
    }
    .create-post-wrapper {
        margin: 20px 15px;
    }
}

/* ---------- NOTIFICATION DROPDOWN ---------- */
.activity-dropdown .notifications-list a {
    padding: 8px 16px;
    display: block;
    border-bottom: 1px solid #efefef;
    font-size: 13px;
}
.activity-dropdown .notifications-list a:last-child {
    border-bottom: none;
}
.activity-dropdown .notifications-list a small {
    color: #8e8e8e;
}