/* ============================================
   Base / Reset + Theme Tokens (DARK MODE)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #18191a;
    --bg-surface: #242526;
    --bg-surface-alt: #1c1e21;
    --border-soft: #3a3b3c;
    --border-strong: #4e4f50;
    --text-main: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --accent: #2d88ff;
    --accent-hover: #1877f2;
    --accent-soft: rgba(45,136,255,0.15);
    --shadow-soft: 0 1px 2px rgba(0,0,0,0.3);
    --radius-card: 12px;
    --radius-pill: 999px;
    --transition-fast: 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px;
}

/* ============================================
   Shared Animations
   ============================================ */

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   Modern Messaging Feed (Dark Mode)
   ============================================ */

.messaging-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-body);
    min-height: 100vh;
}

/* Stories Section */
.stories-section {
    background: linear-gradient(180deg, #242526 0%, #1c1e21 100%);
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.stories-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    text-align: center;
}

.story-link {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: transform var(--transition-fast);
}

.story-link:hover {
    transform: scale(1.04);
}

.story-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #1c3a52 0%, #152d42 100%);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.story-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #242526;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-name {
    font-size: 12px;
    font-weight: 500;
    display: block;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
}

/* Posts List */
.posts-list-section {
    padding: 0;
}

/* Card */
.post-card {
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface);
    transition: background var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    background: var(--bg-surface-alt);
}

.post-card-link {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

/* Sol Resim */
.post-image-large {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-card);
    overflow: hidden;
    flex-shrink: 0;
    background: #3a3b3c;
}

.post-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image-large img {
    transform: scale(1.05);
}

/* Sağ Detaylar */
.post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Başlık + Zaman */
.post-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.post-title-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bilgi Bölümü */
.post-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-location,
.post-announcement {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
}

.post-location {
    color: var(--accent);
}

.post-announcement {
    color: var(--text-secondary);
}

.info-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Alt Meta */
.post-meta-section {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 14px;
}

/* Ripple Effect on Card */
.post-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.post-card:active::after {
    width: 500px;
    height: 500px;
}

/* ============================================
   Messaging Category Page
   ============================================ */

.messaging-category-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-body);
    min-height: 100vh;
}

.messaging-category-header {
    padding: 20px 16px;
    background: linear-gradient(135deg, #242526 0%, #18191a 100%);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 28px;
}

.category-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.category-stats {
    flex-shrink: 0;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-surface);
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.stat-badge small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.messaging-posts-list {
    padding: 0;
}

.messaging-list-item {
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.messaging-list-item:hover {
    background: var(--bg-surface-alt);
}

.messaging-list-item:active {
    background: #1c3a52;
}

.list-item-link {
    display: flex;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.list-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-card);
    overflow: hidden;
    flex-shrink: 0;
    background: #3a3b3c;
    position: relative;
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.messaging-list-item:hover .list-item-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.messaging-list-item:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 32px;
    filter: grayscale(1) brightness(2);
}

/* Content */
.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.list-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.list-item-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.list-item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.list-item-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 14px;
}

/* No Posts */
.messaging-no-posts {
    padding: 60px 20px;
    text-align: center;
}

.no-posts-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.messaging-no-posts h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.messaging-no-posts p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Pagination */
.messaging-pagination {
    padding: 20px 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border-soft);
}

.messaging-pagination .navigation,
.messaging-pagination .pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.messaging-pagination a,
.messaging-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.messaging-pagination a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.messaging-pagination .current,
.messaging-pagination span.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.messaging-pagination .prev,
.messaging-pagination .next {
    font-weight: 600;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #242526 25%, #3a3b3c 50%, #242526 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* List item ripple */
.messaging-list-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.messaging-list-item:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   Modern Messaging Footer
   ============================================ */

.messaging-footer {
    background: linear-gradient(180deg, #242526 0%, #18191a 100%);
    color: var(--text-secondary);
    margin-top: 40px;
}

.messaging-footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-main {
    padding: 40px 20px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand-text {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-main);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-main);
    text-align: center;
}

/* Footer Menu */
.footer-menu {
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Social */
.footer-social {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(45,136,255,0.1);
    border: 1px solid rgba(45,136,255,0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(45,136,255,0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-btn:hover::before {
    width: 300px;
    height: 300px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.social-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.social-btn.google:hover {
    background: #db4437;
    border-color: #db4437;
    color: #fff;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: #fff;
}

.social-btn.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.social-icon {
    font-size: 20px;
    font-weight: 600;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,136,255,0.12);
    border-radius: 50%;
}

.social-label {
    font-size: 14px;
    font-weight: 500;
}

.footer-copyright {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(45,136,255,0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(45,136,255,0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.arrow-up {
    display: block;
}

/* ============================================
   Modern Minimal Header
   ============================================ */

.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.modern-header.hide {
    transform: translateY(-100%);
}

.header-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
    transition: opacity var(--transition-fast);
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.hamburger-btn:hover {
    background: #3a3b3c;
}

.hamburger-btn:active {
    background: #4e4f50;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu Overlay & Slide */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
    backdrop-filter: blur(4px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    z-index: 1999;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}

.slide-menu.active {
    right: 0;
}

/* Menu Header */
.menu-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.menu-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.menu-content {
    padding: 0;
}

/* Menu List */
.menu-list {
    list-style: none;
}

.menu-list li {
    border-bottom: 1px solid var(--border-soft);
}

.menu-list a {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu-list a:hover {
    background: var(--bg-surface-alt);
    padding-left: 28px;
}

.menu-list a:hover::before {
    width: 4px;
}

.menu-list .current-menu-item a,
.menu-list .current_page_item a {
    color: var(--accent);
    background: #1c3a52;
}

.menu-list .current-menu-item a::before,
.menu-list .current_page_item a::before {
    width: 4px;
}

.menu-icon {
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Submenu */
.menu-list .sub-menu {
    list-style: none;
    background: var(--bg-surface-alt);
}

.menu-list .sub-menu a {
    padding-left: 50px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
}

.menu-list .sub-menu a:hover {
    padding-left: 58px;
}

/* Ripple on menu items */
.menu-list a .ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-soft);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Menu Footer Info */
.menu-footer-info {
    padding: 20px;
    background: var(--bg-surface-alt);
    margin-top: 20px;
}

.menu-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.menu-info-item:last-child {
    margin-bottom: 0;
}

.menu-info-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.menu-info-text {
    flex: 1;
}

.menu-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.menu-info-value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

/* Social in menu */
.menu-social {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.menu-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.menu-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu-social-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.menu-social-btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.menu-social-btn.google:hover {
    background: #db4437;
    color: #fff;
}

/* ============================================
   Page / Single Post Bölümleri
   ============================================ */

.messaging-page-container,
.messaging-single-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    min-height: 100vh;
}

/* Page Header */
.messaging-page-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #242526 0%, #18191a 100%);
    border-bottom: 1px solid var(--border-soft);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.page-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.page-meta .meta-icon {
    font-size: 16px;
}

.messaging-page-image {
    margin: 0;
    position: relative;
    background: #000;
}

.messaging-page-image img {
    width: 100%;
    height: auto;
    display: block;
}

.messaging-page-content {
    padding: 24px 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.messaging-page-content p {
    margin-bottom: 20px;
}

.messaging-page-content h1,
.messaging-page-content h2,
.messaging-page-content h3,
.messaging-page-content h4,
.messaging-page-content h5,
.messaging-page-content h6 {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.messaging-page-content h1 {
    font-size: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-soft);
}

.messaging-page-content h2 {
    font-size: 26px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.messaging-page-content h3 { font-size: 22px; }
.messaging-page-content h4 { font-size: 18px; }
.messaging-page-content h5 { font-size: 16px; }
.messaging-page-content h6 {
    font-size: 14px;
    color: var(--text-secondary);
}

.messaging-page-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    position: relative;
    transition: all 0.2s ease;
}

.messaging-page-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.messaging-page-content a:hover {
    border-bottom-color: var(--accent);
}

.messaging-page-content a:hover::after {
    width: 100%;
}

.messaging-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    opacity: 1;
}

/* Lists */
.messaging-page-content ul,
.messaging-page-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.messaging-page-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Blockquote */
.messaging-page-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #1c1e21;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Code */
.messaging-page-content code {
    background: #1c1e21;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent);
}

.messaging-page-content pre {
    background: #0d0d0d;
    color: #e4e6eb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.messaging-page-content pre code {
    background: none;
    padding: 0;
    color: #e4e6eb;
}

/* Tables */
.messaging-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.messaging-page-content table th,
.messaging-page-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.messaging-page-content table th {
    background: #1c1e21;
    font-weight: 600;
    color: var(--text-main);
}

.messaging-page-content table tr:hover {
    background: var(--bg-surface-alt);
}

.messaging-page-content hr {
    border: none;
    height: 1px;
    background: var(--border-soft);
    margin: 32px 0;
}

/* Content Buttons */
.messaging-page-content .wp-block-button__link,
.messaging-page-content .button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.messaging-page-content .wp-block-button__link:hover,
.messaging-page-content .button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,136,255,0.3);
}

/* Page Links (pagination) */
.page-links {
    margin: 32px 0;
    padding: 20px;
    background: #1c1e21;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-links-title {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

.page-links a,
.page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.page-links > span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Comments container */
.messaging-page-comments,
.messaging-comments-section {
    padding: 0px 0px;
    border-top: 8px solid #1c1e21;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-main);
}

/* Single Post Header */
.messaging-post-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface);
}

.messaging-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messaging-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.messaging-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.messaging-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messaging-author-info {
    display: flex;
    flex-direction: column;
}

.messaging-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.messaging-post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.messaging-post-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 16px;
}

/* Single Post Title + Content */
.messaging-post-title {
    padding: 10px 10px 10px;
}

.messaging-post-title h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0;
}

.messaging-post-image {
    margin: 0;
    position: relative;
}

.messaging-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.messaging-post-content {
    padding: 0px 5px 0px 5px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.messaging-post-content p {
    margin-bottom: 16px;
}

.messaging-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.messaging-post-content h2,
.messaging-post-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.messaging-post-content ul,
.messaging-post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.messaging-post-content li {
    margin-bottom: 8px;
}

.messaging-post-content a {
    color: var(--accent);
    text-decoration: none;
}

.messaging-post-content a:hover {
    text-decoration: underline;
}

/* Tags */
.messaging-post-tags {
    padding: 16px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface-alt);
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Post Actions */
.messaging-post-actions {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-surface-alt);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    font-size: 24px;
}

.action-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.like-btn.active .action-icon {
    animation: heartBeat 0.5s ease;
}

/* Author Card */
.messaging-author-card {
    margin: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #242526 0%, #18191a 100%);
    border-radius: 16px;
    display: flex;
    gap: 16px;
}

.author-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #3a3b3c;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-info {
    flex: 1;
}

.author-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.author-card-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.author-card-link {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.author-card-link:hover {
    text-decoration: underline;
}

/* Related Posts */
.messaging-related-posts {
    padding: 20px 16px;
    border-top: 8px solid #1c1e21;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-main);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.related-post-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-post-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.related-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #3a3b3c;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    .messaging-container,
    .messaging-category-container,
    .messaging-footer-container,
    .messaging-page-container,
    .messaging-single-container {
        max-width: 100%;
    }

    .stories-section {
        padding: 16px 12px 12px;
    }

    .post-card-link {
        padding: 12px;
        gap: 12px;
    }

    .post-image-large {
        width: 140px;
        height: 140px;
    }

    .post-title-main,
    .list-item-title {
        font-size: 15px;
    }

    .post-location,
    .post-announcement,
    .list-item-excerpt {
        font-size: 13px;
    }

    .messaging-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-title {
        font-size: 20px;
    }

    .stat-badge {
        padding: 10px 16px;
        font-size: 18px;
    }

    .list-item-image {
        width: 100px;
        height: 100px;
    }

    .header-container {
        max-width: 100%;
        padding: 0 12px;
    }

    .slide-menu {
        width: 90%;
    }

    .header-logo-text {
        font-size: 18px;
    }

    .messaging-page-header {
        padding: 20px 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-icon {
        font-size: 28px;
    }

    .messaging-page-content,
    .messaging-post-content {
        padding: 15px 15px;
        font-size: 13px;
    }

    .messaging-page-content h1 { font-size: 26px; }
    .messaging-page-content h2 { font-size: 22px; }
    .messaging-page-content h3 { font-size: 18px; }

    .messaging-page-content table {
        font-size: 13px;
    }

    .messaging-page-content table th,
    .messaging-page-content table td {
        padding: 8px;
    }

    .messaging-post-title h1 {
        font-size: 18px;
        text-align: center;
    }

    .action-btn {
        padding: 10px 16px;
    }

    .footer-main {
        padding: 30px 16px 20px;
        gap: 24px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 400px) {
    .post-card-link,
    .list-item-link {
        flex-direction: column;
    }

    .post-image-large,
    .list-item-image {
        width: 100%;
        height: 200px;
    }

    .category-stats,
    .stat-badge {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand,
    .footer-menu,
    .footer-social,
    .footer-title {
        text-align: left;
    }

    .footer-links a:hover {
        transform: translateX(8px);
    }

    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-post-link {
        flex-direction: column;
    }

    .related-post-image {
        width: 100%;
        height: 120px;
    }

    .related-post-content {
        padding: 12px;
    }

    .slide-menu {
        max-width: 380px;
    }
}

/* Print */
@media print {
    .messaging-page-header {
        background: none;
        border-bottom: 2px solid #3a3b3c;
    }

    .messaging-page-content {
        color: #000;
        background: #fff;
    }

    .messaging-page-content a {
        color: #000;
        text-decoration: underline;
    }
}

/* --- İçerikteki Standart Galeriyi Gizle --- */
.messaging-post-content .wp-block-gallery,
.messaging-post-content .gallery,
figure.wp-block-gallery {
    display: none !important;
}

/* Genel Konteyner */
.messaging-post-gallery {
    margin-bottom: 30px;
    max-width: 100%;
    position: relative;
    scroll-margin-top: 100px;
}

/* Resim Kutusu */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 15px 0;
    background: #1c1e21;
    text-align: center;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* Navigasyon Çubuğu */
.slider-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px 0px;
}

/* Link Butonlar (a etiketi) */
.nav-link-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    text-decoration: none !important;
    opacity: 0.9;
    transition: opacity 0.2s;
    border: none;
    background: none;
}

.nav-link-btn:hover {
    opacity: 1;
}

/* İkon Daireleri */
.nav-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Prev (Koyu Gri) */
.prev-group .nav-icon-circle { background-color: #4e4f50; }
.prev-group span { color: #b0b3b8; font-weight: 600; font-size: 16px; }

/* Next (Mavi) */
.next-group .nav-icon-circle { background-color: #2d88ff; }
.next-group span { color: #2d88ff; font-weight: 600; font-size: 16px; }

/* Sayaç */
.slide-counter { font-size: 16px; color: #b0b3b8; font-weight: 500; }