/*
Theme Name: FowlStyle
Theme URI: https://fowlstyle.com
Author: FowlStyle
Author URI: https://fowlstyle.com
Description: Fwolstyle social network theme
Version: 2.7.0
License: GPL v2 or later
Text Domain: fowlstyle
*/

/* ─── RESET & BASE ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #262626;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 49px;
}
a { text-decoration: none; color: #262626; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── LAYOUT ─── */
.fowlstyle-main-shell {
    max-width: 935px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
}
.fowlstyle-feed-column { flex: 1; max-width: 600px; }
.fowlstyle-sidebar-column { width: 293px; flex-shrink: 0; position: sticky; top: 80px; align-self: flex-start; }

/* ─── DESKTOP NAV ─── */
.desktop-nav {
    position: sticky; top: 0; z-index: 1000;
    background: #fff; border-bottom: 1px solid #dbdbdb;
    height: 54px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
}
.desktop-nav .logo { font-family: 'Grand Hotel', cursive; font-size: 28px; color: #262626; }
.desktop-nav .search-form {
    display: flex; align-items: center;
    background: #fafafa; border: 1px solid #dbdbdb; border-radius: 4px;
    padding: 2px 10px;
}
.desktop-nav .search-form input {
    border: none; outline: none; background: transparent;
    width: 160px; font-size: 14px; padding: 4px 0;
}
.desktop-nav .search-form button { background: none; border: none; color: #8e8e8e; cursor: pointer; }
.desktop-nav .nav-icons { display: flex; gap: 22px; align-items: center; }
.desktop-nav .nav-icons a, .desktop-nav .nav-icons button {
    color: #262626; font-size: 24px; background: none; border: none;
    cursor: pointer; padding: 0; position: relative;
}
.desktop-nav .nav-icons img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ─── BADGES ─── */
.badge {
    position: absolute; top: -6px; right: -8px;
    background: #ed4956; color: #fff; border-radius: 50%;
    font-size: 10px; line-height: 18px; text-align: center;
    min-width: 18px; height: 18px; font-weight: 600;
    display: none; padding: 0 4px;
}
.badge.online { background: #34a853; width: 10px; height: 10px; font-size: 0; border: 2px solid #fff; box-shadow: 0 0 0 2px #34a853; top: -4px; right: -6px; }

/* ─── DROPDOWNS ─── */
.fowlstyle-dropdown {
    position: absolute; top: 60px; background: #fff; border: 1px solid #dbdbdb;
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 220px; z-index: 1100; padding: 8px 0; display: none;
}
.activity-dropdown { right: 80px; }
.profile-dropdown { right: 20px; }
.fowlstyle-dropdown a {
    display: block; padding: 8px 16px; color: #262626; font-size: 14px;
}
.fowlstyle-dropdown a:hover { background: #fafafa; }
.fowlstyle-dropdown .notifications-list { max-height: 350px; overflow-y: auto; }

/* ─── MOBILE HEADER ─── */
.fowlstyle-mobile-header {
    display: none; position: sticky; top: 0; z-index: 1000;
    background: #fff; border-bottom: 1px solid #dbdbdb;
    height: 44px; align-items: center; padding: 0 12px; justify-content: space-between;
}
.mobile-hamburger { background: none; border: none; font-size: 22px; color: #262626; padding: 4px 8px; }
.mobile-logo { font-family: 'Grand Hotel', cursive; font-size: 24px; color: #262626; }
.mobile-header-icons { display: flex; gap: 16px; align-items: center; }
.mobile-header-icons button, .mobile-header-icons a {
    color: #262626; font-size: 22px; background: none; border: none;
    cursor: pointer; padding: 0; position: relative;
}

/* ─── MOBILE SLIDE MENU ─── */
.mobile-slide-menu {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 10002; transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1); overflow-y: auto; padding: 20px 0;
}
.mobile-slide-menu.open { left: 0; }
.slide-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 10001; display: none;
}
.slide-menu-overlay.active { display: block; }
.slide-menu-header {
    display: flex; align-items: center; padding: 0 20px 16px;
    border-bottom: 1px solid #efefef; gap: 12px;
}
.slide-menu-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.slide-menu-name { font-weight: 600; font-size: 16px; }
.slide-menu-username { font-size: 13px; color: #8e8e8e; }
.slide-menu-nav a {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 20px; color: #262626; font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.slide-menu-nav a i { width: 20px; text-align: center; font-size: 18px; }

/* ─── MOBILE DOCK ─── */
.fowlstyle-mobile-dock {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    height: 49px; background: #fff; border-top: 1px solid #dbdbdb;
    justify-content: space-around; align-items: center; z-index: 1000;
}
.fowlstyle-mobile-dock a {
    color: #262626; font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.fowlstyle-mobile-dock .dock-profile img {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 735px) {
    .desktop-nav { display: none !important; }
    .fowlstyle-mobile-header { display: flex !important; }
    .fowlstyle-mobile-dock { display: flex !important; }
    .fowlstyle-main-shell { flex-direction: column; padding: 0; margin-top: 0; gap: 0; }
    .fowlstyle-feed-column { max-width: 100%; }
    .fowlstyle-sidebar-column { display: none; }
}
@media (min-width: 736px) {
    .fowlstyle-mobile-header { display: none !important; }
    .fowlstyle-mobile-dock { display: none !important; }
    .desktop-nav { display: flex !important; }
}

/* ─── PROFILE PAGE ─── */
.fowlstyle-profile-container { max-width: 935px; margin: 30px auto; padding: 0 20px; }
.fowlstyle-profile-header {
    display: flex; align-items: center; gap: 60px;
    margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid #dbdbdb;
}
.fowlstyle-avatar-wrapper { position: relative; flex-shrink: 0; }
.fowlstyle-avatar-wrapper img {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb;
}
.fowlstyle-profile-stats { display: flex; gap: 40px; margin-bottom: 20px; }
.fowlstyle-profile-stats .stat { font-size: 16px; }
.fowlstyle-profile-stats .stat strong { font-weight: 600; }
.fowlstyle-profile-stats .stat a { color: #262626; }
.fowlstyle-profile-stats .stat a:hover { text-decoration: underline; }
.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 a { display: block; width: 100%; height: 100%; }
.fowlstyle-profile-posts .grid-item img,
.fowlstyle-profile-posts .grid-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.fowlstyle-profile-posts .grid-item .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 600; opacity: 0;
    transition: opacity 0.2s; pointer-events: none;
}
.fowlstyle-profile-posts .grid-item:hover .overlay { opacity: 1; }
.fowlstyle-profile-posts .grid-item .video-indicator {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; pointer-events: none; z-index: 2;
}
.fowlstyle-profile-posts .grid-item .grid-delete-btn {
    position: absolute; top: 8px; right: 8px; z-index: 10;
    background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
    color: #fff; width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
    cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.fowlstyle-profile-posts .grid-item:hover .grid-delete-btn { opacity: 1; }
.fowlstyle-profile-posts .grid-item .grid-delete-btn:hover { background: rgba(237, 73, 86, 0.9); }
.profile-bio p { margin: 0; white-space: pre-wrap; }
.fowlstyle-verification-section { margin: 30px 0; padding: 20px; background: #f9f9f9; border-radius: 8px; border: 1px solid #dbdbdb; }
.fowlstyle-verification-section h3 { margin-top: 0; }

@media (max-width: 735px) {
    .fowlstyle-profile-header { flex-direction: column; text-align: center; gap: 20px; }
    .fowlstyle-avatar-wrapper img { width: 100px; height: 100px; }
    .fowlstyle-profile-stats { justify-content: center; gap: 20px; }
    .fowlstyle-profile-posts { gap: 2px; }
}

/* ─── 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: #fff; padding: 24px; border-radius: 12px;
    max-width: 400px; width: 90%; max-height: 80vh; overflow-y: auto;
    position: relative;
}
.fowlstyle-modal-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 28px; cursor: pointer; color: #8e8e8e;
    background: none; border: none;
}