:root {
    --primary-color: #FF385C;
    --secondary-color: #7C3AED;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --surface-light: #F5F5F5;
    --text-primary: #000000;
    --text-secondary: #65676B;
    --border-color: #E5E5E5;
    --success: #10B981;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* Desktop Header */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    max-height: 40px !important;
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
}

.logo i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-container input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    position: relative;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.header-icon:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.header-profile img:hover {
    transform: scale(1.1);
}

.btn-login, .btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--surface-light);
}

.btn-register {
    background: var(--primary-color);
    color: white;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    display: none;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-logo img {
    max-height: 35px !important;
    height: 35px !important;
    width: auto !important;
    object-fit: contain !important;
}

.mobile-logo i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-notif-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-notif-icon .notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.1rem 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.6rem;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item-center {
    margin: 0 0.5rem;
}

.add-button {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
    transition: all 0.3s;
}

.add-button:hover,
.nav-item:active .add-button {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.5);
}

.nav-profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.nav-item.active .nav-profile-img {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.nav-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--surface);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

.feed-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.user-info-card, .menu-card, .suggestions-card, .trending-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-info-card {
    text-align: center;
}

.user-info-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.user-info-card h3 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.user-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stats div {
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.stats span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--surface-light);
    color: var(--primary-color);
}

/* Main Feed */
.create-post-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.create-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
}

.posts-grid {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.post-card.promoted-post {
    border: 2px solid #FF9800;
}

.promoted-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #FF9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.user-info h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.user-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.verified {
    color: #1DA1F2;
    font-size: 0.9rem;
}

.post-options-wrapper {
    position: relative;
}

.post-options {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.post-options:hover {
    color: var(--primary-color);
}

.post-options-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.post-options-wrapper.active .post-options-menu {
    display: block;
}

.post-options-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.post-options-menu a:hover {
    background: var(--surface-light);
}

.post-options-menu a i {
    font-size: 1rem;
    width: 20px;
}

.post-media {
    position: relative;
    width: 100%;
    background: #000;
}

.post-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

.post-media video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    pointer-events: none;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.action-btn:hover {
    color: var(--primary-color);
}

.like-btn.liked {
    color: var(--primary-color);
}

.like-btn.liked i {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.post-caption {
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
}

.post-caption strong {
    color: var(--text-primary);
}

.post-caption .hashtag {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.post-caption .hashtag:hover {
    text-decoration: underline;
}

.post-views {
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stories Container */
.stories-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 1rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    cursor: pointer;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--surface);
    object-fit: cover;
}

.add-story .story-avatar {
    background: var(--surface-light);
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 2px dashed var(--border-color);
}

.story-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.story-item.viewed .story-avatar {
    opacity: 0.6;
}

/* Suggestions */
.suggestions-card h3, .trending-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.suggestion-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.follow-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s;
    font-size: 0.85rem;
}

.follow-btn:hover {
    transform: scale(1.05);
}

/* Trending */
.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background: var(--surface-light);
}

.trend-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.trending-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.trending-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.desktop-only {
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .feed-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar, .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .container {
        padding: 4rem 0.5rem 5rem;
    }
    
    .feed-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar, .right-sidebar {
        display: none;
    }
    
    .story-avatar {
        width: 56px;
        height: 56px;
        padding: 2px;
    }
    
    .story-avatar img {
        border-width: 2px;
    }
    
    .add-story .story-avatar {
        font-size: 1.2rem;
    }
    
    .story-item {
        min-width: 65px;
        gap: 0.35rem;
    }
    
    .story-item span {
        font-size: 0.75rem;
    }
    
    .stories-container {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.user-menu-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    overflow: hidden;
    padding-top: 5px;
    margin-top: -5px;
}

/* Dropdown'a geçiş için invisible bridge */
.user-menu-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
    display: block;
}

.user-menu-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu:hover {
    display: block;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.user-dropdown-menu a:hover {
    background: var(--surface-light);
}

.user-dropdown-menu a i {
    width: 20px;
    font-size: 1rem;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}
