/* ============================================
   SOHBETROOM - FEED & GÖNDERİ STİLLERİ
   ============================================ */

/* Hero Section (Landing) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 0;
    min-height: calc(100vh - var(--navbar-height));
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Feature Cards */
.features-section {
    padding: 60px 0;
}

.features-section .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-white);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Chat Rooms Section */
.rooms-section {
    padding: 60px 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) 1fr;
    gap: 24px;
}

.rooms-list {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.room-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.room-card.room-general { border-left: 4px solid #8B5CF6; }
.room-card.room-music { border-left: 4px solid #F59E0B; }
.room-card.room-adult { border-left: 4px solid #EF4444; }
.room-card.room-game { border-left: 4px solid #10B981; }

.room-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.room-info .room-online {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.room-info .room-online span {
    color: #4ADE80;
}

.room-card .btn {
    margin-left: auto;
}

/* Popular Users Widget */
.popular-widget {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.widget-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-white);
}

.widget-badge {
    background: var(--gradient-main);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.popular-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}

.popular-user:last-child {
    border-bottom: none;
}

.popular-user:hover {
    padding-left: 6px;
}

.popular-user-info {
    flex: 1;
    min-width: 0;
}

.popular-user-info .name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.popular-user-info .name span {
    color: var(--text-muted);
    font-weight: 400;
}

.popular-user-info .meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.popular-user-info .meta .online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    margin-right: 4px;
}

/* ---- FEED ---- */
.feed-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.feed-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Post Composer */
.post-composer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.composer-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.composer-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    min-height: 60px;
    outline: none;
    transition: all var(--transition-base);
    width: 100%;
}

.composer-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.composer-tools {
    display: flex;
    gap: 4px;
}

.composer-tool {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.composer-tool:hover {
    background: var(--bg-glass);
    color: var(--primary-light);
}

/* Image preview */
.image-preview {
    margin-top: 12px;
    position: relative;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    max-height: 300px;
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
}

.image-preview .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease;
}

.post-card:hover {
    border-color: var(--border-glass-strong);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 0;
}

.post-user-info {
    flex: 1;
}

.post-user-info .username {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.post-user-info .username:hover {
    color: var(--primary-light);
}

.post-user-info .post-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.post-menu-btn:hover {
    background: var(--bg-glass);
    color: var(--text-white);
}

.post-content {
    padding: 14px 20px;
}

.post-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: filter var(--transition-fast);
}

.post-image:hover {
    filter: brightness(1.05);
}

.post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.post-stats a {
    color: var(--text-muted);
}

.post-stats a:hover {
    color: var(--text-white);
}

.post-actions {
    display: flex;
    padding: 4px 12px 12px;
    gap: 4px;
    border-top: 1px solid var(--border-glass);
    margin: 0 20px;
    padding-top: 8px;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.post-action-btn:hover {
    background: var(--bg-glass);
    color: var(--text-white);
}

.post-action-btn.liked {
    color: #F43F5E;
}

.post-action-btn .action-icon {
    font-size: 1.1rem;
}

/* Comments Section */
.post-comments {
    padding: 0 20px 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    flex: 1;
}

.comment-body .comment-username {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.85rem;
    margin-right: 8px;
}

.comment-body .comment-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.comment-body .comment-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.comment-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.comment-item:hover .comment-delete {
    opacity: 1;
}

.comment-delete:hover {
    color: #F87171;
}

/* Comment input */
.comment-form {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-glass);
    align-items: center;
}

.comment-form input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.comment-form input:focus {
    border-color: var(--primary);
}

.comment-form button {
    background: var(--gradient-btn);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.comment-form button:hover {
    box-shadow: var(--shadow-btn);
    transform: translateY(-1px);
}

/* Post menu dropdown */
.post-menu {
    position: relative;
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: rgba(26,10,46,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all var(--transition-fast);
    z-index: 20;
    box-shadow: var(--shadow-md);
}

.post-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.post-menu-dropdown a,
.post-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: all var(--transition-fast);
}

.post-menu-dropdown a:hover,
.post-menu-dropdown button:hover {
    background: var(--bg-glass);
    color: var(--text-white);
}

.post-menu-dropdown .danger:hover {
    background: rgba(239,68,68,0.1);
    color: #F87171;
}

/* Feed Sidebar */
.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

/* Sidebar card */
.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 20px;
    overflow: hidden;
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Suggested user */
.suggested-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.suggested-user-info {
    flex: 1;
    min-width: 0;
}

.suggested-user-info .name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.88rem;
    display: block;
    text-decoration: none;
}

.suggested-user-info .name:hover {
    color: var(--primary-light);
}

.suggested-user-info .bio {
    color: var(--text-muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Create post page */
.create-post-card {
    max-width: 680px;
    margin: 0 auto;
}

/* Responsive Feed */
@media (max-width: 1024px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .feed-sidebar {
        display: none;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .rooms-list {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        gap: 30px;
        min-height: auto;
    }

    .hero-image {
        max-width: 280px;
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .rooms-list {
        grid-template-columns: 1fr;
    }

    .post-card {
        border-radius: var(--radius-lg);
    }
}

/* ===== 3D EFEKTLER ===== */

/* Feature kartları 3D */
.feature-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.15);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: var(--gradient-main);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.feature-card:hover::after {
    opacity: 0.25;
}

/* Room kartları 3D */
.room-card {
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.room-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(139, 92, 246, 0.12);
}

/* CTA kart 3D */
.cta-card-3d {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.cta-card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
    animation: ctaShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShimmer {
    0%, 100% { transform: translate(-20%, -20%) rotate(0deg); }
    50% { transform: translate(20%, 20%) rotate(180deg); }
}

/* Popular widget 3D */
.popular-widget {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Post kart 3D hover */
.post-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Hero image 3D float */
.hero-image img {
    animation: heroFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.3));
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    25% { transform: translateY(-12px) rotateY(2deg); }
    50% { transform: translateY(-6px) rotateY(0deg); }
    75% { transform: translateY(-16px) rotateY(-2deg); }
}

/* Hero stats 3D */
.hero-stat {
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Sidebar card 3D */
.sidebar-card {
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Animasyonlar */
.animate-fadeInUp {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stagger animasyon */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Explore grid 3D */
.explore-item {
    transition: all 0.35s ease;
    transform-style: preserve-3d;
}

.explore-item:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* Profile post grid 3D */
.profile-post-item {
    transition: all 0.3s ease;
}

.profile-post-item:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* ───── STORIES BAR ───── */
.stories-bar { margin-bottom: 24px; padding: 16px 0; }
.stories-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.stories-scroll::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; cursor: pointer; transition: transform 0.2s ease; }
.story-item:hover { transform: translateY(-3px); }
.story-avatar-wrap { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--gradient-main); position: relative; }
.story-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--bg-dark); object-fit: cover; }
.story-online { background: linear-gradient(135deg, #8B5CF6, #D946EF, #F472B6) !important; box-shadow: 0 0 15px rgba(139,92,246,0.3); }
.story-item.story-add .story-avatar-wrap { background: var(--bg-glass); border: 2px dashed var(--border-glass); }
.story-add-icon { position: absolute; bottom: -2px; right: -2px; width: 22px; height: 22px; background: var(--gradient-btn); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; border: 2px solid var(--bg-dark); }
.story-name { font-size: 0.72rem; color: var(--text-secondary); max-width: 64px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-align: center; }

/* ───── FEATURED / TRENDING ───── */
.featured-section { margin-bottom: 28px; }
.featured-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.featured-header h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-white); display: flex; align-items: center; gap: 8px; }
.featured-link { font-size: 0.82rem; color: var(--primary-light); font-weight: 500; display: flex; align-items: center; gap: 4px; text-decoration: none; }
.featured-link:hover { color: var(--accent); }
.featured-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.featured-scroll::-webkit-scrollbar { display: none; }

/* Card — premium glass design */
.featured-card {
    min-width: 220px; max-width: 220px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(139,92,246,0.2), 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(139,92,246,0.3);
}

/* Media section */
.featured-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.featured-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,.68,0,1.2);
}
.featured-card:hover .featured-card-media img { transform: scale(1.1); }
.featured-text-bg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; text-align: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.12) 50%, rgba(59,130,246,0.1) 100%);
    color: var(--text-secondary);
    font-size: 0.84rem; line-height: 1.6;
}

/* Rank badge (#1 #2 #3) */
.featured-rank {
    position: absolute; top: 10px; left: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e; font-weight: 800; font-size: 0.72rem;
    padding: 3px 8px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
    z-index: 2;
}

/* Popüler badge */
.featured-badge {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: white; font-weight: 600; font-size: 0.68rem;
    padding: 3px 8px; border-radius: 8px;
    display: flex; align-items: center; gap: 3px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
    z-index: 2;
}

/* Card body */
.featured-card-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}

/* User row */
.featured-card-user {
    display: flex; align-items: center; gap: 10px;
}
.featured-avatar-wrap {
    position: relative; flex-shrink: 0;
}
.featured-avatar-wrap .avatar {
    width: 32px; height: 32px;
    border: 2px solid rgba(139,92,246,0.3);
}
.featured-online-dot {
    position: absolute; bottom: 0; right: -1px;
    width: 10px; height: 10px;
    background: #4ADE80;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}
.featured-user-info {
    display: flex; flex-direction: column;
    min-width: 0; flex: 1;
}
.featured-user-name {
    color: var(--text-white); font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 4px;
}
.featured-user-name .verified-icon { color: var(--primary-light); flex-shrink: 0; }
.featured-user-time {
    color: var(--text-muted); font-size: 0.7rem;
}

/* Preview text */
.featured-card-text {
    color: var(--text-secondary); font-size: 0.78rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0;
}

/* Stats row */
.featured-card-stats {
    display: flex; gap: 12px; margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.featured-stat {
    font-size: 0.72rem; display: flex; align-items: center; gap: 4px;
    color: var(--text-muted); transition: color 0.2s;
}
.featured-card:hover .featured-stat-heart { color: #F87171; }
.featured-card:hover .featured-stat-comment { color: var(--primary-light); }
.featured-card:hover .featured-stat-view { color: var(--text-secondary); }

/* ───── ROOMS QUICK ACCESS ───── */
.rooms-quick { margin-bottom: 28px; }
.rooms-quick-list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rooms-quick-list::-webkit-scrollbar { display: none; }
.rooms-quick-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 14px; text-decoration: none; transition: all 0.25s ease; flex-shrink: 0; white-space: nowrap; }
.rooms-quick-item:hover { transform: translateY(-2px); border-color: var(--primary); background: rgba(139,92,246,0.08); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.rooms-quick-icon { color: var(--primary-light); font-size: 1.1rem; }
.rooms-quick-name { color: var(--text-white); font-weight: 600; font-size: 0.88rem; }
.rooms-quick-online { color: #4ADE80; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }

@media (max-width: 768px) {
    .stories-bar { margin-bottom: 16px; }
    .story-avatar-wrap { width: 54px; height: 54px; }
    .story-name { max-width: 54px; font-size: 0.68rem; }
    .stories-scroll { gap: 12px; }
    .featured-card { min-width: 175px; max-width: 175px; }
    .featured-card-media { height: 140px; }
    .featured-section { margin-bottom: 20px; }
    .featured-card-body { padding: 10px 12px 12px; gap: 6px; }
    .featured-avatar-wrap .avatar { width: 28px; height: 28px; }
    .featured-user-name { font-size: 0.78rem; }
    .featured-card-text { font-size: 0.74rem; -webkit-line-clamp: 1; }
    .featured-stat { font-size: 0.68rem; }
}


/* ============================================
   BADGE / ROZET SİSTEMİ
   ============================================ */

.post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px 0;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-gold {
    background: linear-gradient(135deg, rgba(255,183,77,0.2), rgba(255,215,0,0.1));
    border: 1px solid rgba(255,215,0,0.4);
    color: #FFD700;
    box-shadow: 0 0 12px rgba(255,215,0,0.2);
}

.badge-fire {
    background: linear-gradient(135deg, rgba(255,87,34,0.2), rgba(255,152,0,0.1));
    border: 1px solid rgba(255,87,34,0.4);
    color: #FF6B35;
    box-shadow: 0 0 12px rgba(255,87,34,0.2);
}

.badge-electric {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.1));
    border: 1px solid rgba(139,92,246,0.4);
    color: #A78BFA;
    box-shadow: 0 0 12px rgba(139,92,246,0.2);
}

.badge-pink {
    background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.1));
    border: 1px solid rgba(236,72,153,0.4);
    color: #F472B6;
    box-shadow: 0 0 12px rgba(236,72,153,0.2);
}

.badge-cyan {
    background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(34,211,238,0.1));
    border: 1px solid rgba(6,182,212,0.4);
    color: #22D3EE;
    box-shadow: 0 0 12px rgba(6,182,212,0.2);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Rozet glow animasyonu */
.badge-gold { animation: badgeGlowGold 2s ease-in-out infinite alternate; }
@keyframes badgeGlowGold {
    0% { box-shadow: 0 0 8px rgba(255,215,0,0.15); }
    100% { box-shadow: 0 0 18px rgba(255,215,0,0.35); }
}

.badge-fire { animation: badgeGlowFire 1.5s ease-in-out infinite alternate; }
@keyframes badgeGlowFire {
    0% { box-shadow: 0 0 8px rgba(255,87,34,0.15); }
    100% { box-shadow: 0 0 18px rgba(255,87,34,0.35); }
}

/* Yeni gönderi animasyonu */
.new-post-anim {
    animation: newPostSlide 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes newPostSlide {
    0% { opacity: 0; transform: translateY(-20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Spinner küçük (buton içi) */
.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinnerRotate 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* Post submit durumu */
.post-submit-status {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* ============================================
   SIDEBAR DETAYLI STILLER
   ============================================ */

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 16px;
}

.sidebar-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 12px 0;
}

/* Online Users Grid */
.online-users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.online-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.online-user-item:hover {
    background: rgba(139,92,246,0.08);
    transform: translateY(-2px);
}

.online-user-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60px;
    text-align: center;
}

/* Gunun Yildizlari */
.sidebar-stars {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
}

.star-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.star-item:hover {
    background: rgba(139,92,246,0.06);
    border-color: rgba(139,92,246,0.15);
    transform: translateX(4px);
}

.star-item:last-child { margin-bottom: 0; }

.star-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.star-badge-share {
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(99,102,241,0.2));
    border: 1px solid rgba(139,92,246,0.3);
    color: #A78BFA;
}

.star-badge-heart {
    background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(244,114,182,0.2));
    border: 1px solid rgba(236,72,153,0.3);
    color: #F472B6;
}

.star-badge-chat {
    background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(34,211,238,0.2));
    border: 1px solid rgba(6,182,212,0.3);
    color: #22D3EE;
}

.star-user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.star-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.star-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.star-stat {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.star-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    background: rgba(139,92,246,0.1);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Mobile sidebar */
@media (max-width: 1024px) {
    .feed-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}


/* ═══════════════════════════════════
   LIGHT THEME - FEED
   ═══════════════════════════════════ */
[data-theme="light"] .post-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(139,92,246,0.15);
}

[data-theme="light"] .post-header .post-author-name,
[data-theme="light"] .post-text,
[data-theme="light"] .comment-text {
    color: #1a0a2e !important;
}

[data-theme="light"] .post-time,
[data-theme="light"] .comment-time {
    color: rgba(26, 10, 46, 0.6) !important;
}

[data-theme="light"] .post-action-btn {
    color: rgba(26, 10, 46, 0.7);
}

[data-theme="light"] .post-action-btn:hover {
    color: #8B5CF6;
    background: rgba(139,92,246,0.1);
}

[data-theme="light"] .sidebar-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(139,92,246,0.15);
}

[data-theme="light"] .sidebar-title {
    color: #1a0a2e !important;
}

[data-theme="light"] .user-item-name,
[data-theme="light"] .trending-tag {
    color: #1a0a2e !important;
}

[data-theme="light"] .user-item-username,
[data-theme="light"] .trending-count {
    color: rgba(26, 10, 46, 0.6) !important;
}

/* Post Menu Dropdown - Light */
[data-theme="light"] .post-menu-dropdown {
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139,92,246,0.15) !important;
    box-shadow: 0 8px 30px rgba(139,92,246,0.12) !important;
}

[data-theme="light"] .post-menu-dropdown a,
[data-theme="light"] .post-menu-dropdown button {
    color: rgba(26,10,46,0.75) !important;
}

[data-theme="light"] .post-menu-dropdown a:hover,
[data-theme="light"] .post-menu-dropdown button:hover {
    background: rgba(139,92,246,0.08) !important;
    color: #1a0a2e !important;
}

[data-theme="light"] .post-menu-dropdown .danger:hover {
    background: rgba(239,68,68,0.08) !important;
    color: #DC2626 !important;
}

/* Composer - Light */
[data-theme="light"] .composer-input {
    background: rgba(139,92,246,0.04);
    border-color: rgba(139,92,246,0.15);
    color: #1a0a2e;
}

[data-theme="light"] .composer-input::placeholder {
    color: rgba(26,10,46,0.4);
}

[data-theme="light"] .composer-input:focus {
    background: rgba(139,92,246,0.06);
}

/* Comment Form - Light */
[data-theme="light"] .comment-form input {
    background: rgba(139,92,246,0.04);
    border-color: rgba(139,92,246,0.15);
    color: #1a0a2e;
}

[data-theme="light"] .comment-form input::placeholder {
    color: rgba(26,10,46,0.4);
}

/* Post Stats - Light */
[data-theme="light"] .post-stats {
    color: rgba(26,10,46,0.5);
}

[data-theme="light"] .post-stats a {
    color: rgba(26,10,46,0.5);
}

[data-theme="light"] .post-stats a:hover {
    color: #7C3AED;
}

/* Post Menu Button - Light */
[data-theme="light"] .post-menu-btn {
    color: rgba(26,10,46,0.4);
}

[data-theme="light"] .post-menu-btn:hover {
    background: rgba(139,92,246,0.08);
    color: #1a0a2e;
}

/* ============================================
   MOBİL OVERRIDE — Android uyumluluk
   feed.css en son yüklenir, bu yüzden
   mobil stilleri burada tanımlamak zorundayız
   ============================================ */
@media (max-width: 768px) {
    .feed-layout {
        gap: 16px;
    }

    .feed-main {
        gap: 16px;
    }

    .post-card {
        border-radius: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .post-header {
        padding: 12px 12px 0;
        gap: 10px;
    }

    .post-content {
        padding: 10px 12px;
    }

    .post-stats {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .post-actions {
        margin: 0 8px;
        padding: 6px 0;
        gap: 0;
    }

    .post-action-btn {
        flex: 1;
        padding: 6px 2px;
        font-size: 0.78rem;
        gap: 3px;
        min-width: 0;
    }

    .post-action-btn .action-icon {
        font-size: 0.95rem;
    }

    .post-comments {
        padding: 0 12px 12px;
    }

    .comment-form {
        padding: 8px 12px;
        gap: 8px;
    }

    .comment-form input {
        padding: 8px 12px;
        font-size: 0.84rem;
        min-width: 0;
    }

    .comment-form button {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Composer */
    .post-composer {
        padding: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .composer-top {
        gap: 10px;
    }

    .composer-input {
        font-size: 16px;
        padding: 10px 12px;
        min-height: 50px;
    }

    .composer-actions {
        gap: 4px;
        padding: 8px 0 0;
    }
}

@media (max-width: 480px) {
    .post-actions {
        margin: 0 6px;
        gap: 0;
    }

    .post-action-btn {
        padding: 6px 1px;
        font-size: 0.75rem;
        gap: 2px;
    }

    .comment-form {
        padding: 8px 10px;
        gap: 6px;
    }

    .comment-form button {
        padding: 7px 10px;
        font-size: 0.76rem;
    }
    
    .post-card {
    max-width: 500px;
    margin: 20px auto 20px 1px;
    width: calc(100% - 20px);
}