/**
 * 🎨 SözDuvarı - Sosyal Medya Teması
 * Modern, temiz ve kullanıcı dostu tasarım
 */

:root {
    /* Modern Color Palette */
    --primary: #1DA1F2;
    --primary-hover: #1a8cd8;
    --primary-dark: #1a8cd8;
    --primary-light: #E8F5FE;
    --secondary: #14171A;
    --accent: #E1E8ED;
    --success: #17BF63;
    --danger: #E0245E;
    --danger-light: #FCE7F3;
    --warning: #FFAD1F;
    --warning-light: #FEF3E2;
    
    /* Grays */
    --gray-50: #F7F9FA;
    --gray-100: #E1E8ED;
    --gray-200: #AAB8C2;
    --gray-300: #657786;
    --gray-400: #38444D;
    --gray-500: #14171A;
    
    /* Social Media Spacing */
    --navbar-height: 60px;
    --sidebar-width: 280px;
    --feed-max-width: 650px;
    --right-sidebar-width: 350px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.16);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-500);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Structure */
.social-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-height);
    gap: 0;
    align-items: flex-start;
    justify-content: center; /* Ana akışı ortaya al */
}

.social-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-100);
    padding: 1.5rem 0;
    overflow-y: auto;
    flex-shrink: 0;
    order: 0; /* First element */
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100vh - var(--navbar-height));
    z-index: 10;
}

.social-feed {
    flex: 1;
    max-width: var(--feed-max-width);
    padding: 1rem 2rem;
    margin: 0 auto;
    order: 2; /* Between ad spaces */
    /* Ana akışı tam ortaya almak için */
    margin-left: auto;
    margin-right: auto;
    /* Ana feed'in genişliğini sınırla */
    width: 100%;
    max-width: 600px; /* Sabit maksimum genişlik */
}

/* Sağ Sidebar - Baştan tasarlandı */
.social-right-sidebar {
    width: 350px;
    background: #ffffff;
    border-left: 1px solid #e9ecef;
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    z-index: 10;
}

/* Sidebar Container Classes */
.sidebar-left {
    order: 0 !important;
}

.sidebar-right {
    order: 4 !important;
}

/* Modern Navbar */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-hover);
}

.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
}

.navbar-actions {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.mobile-menu-toggle {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 10;
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* User Avatar Button */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
}

.navbar-user:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-user:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #9C27B0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.navbar-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.2;
}


/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0 1rem;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.sidebar-nav-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.sidebar-nav-link.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav-link i {
    width: 24px;
    font-size: 1.3rem;
}

.category-count {
    margin-left: auto;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-nav-link.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-action-btn {
    margin: 1rem;
    width: calc(100% - 2rem);
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Feed Container */
.feed-header {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.feed-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.feed-subtitle {
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.feed-tab {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    color: #000000 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.feed-tab:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: #000000 !important;
    transform: translateY(-1px);
}

.feed-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feed-tab.active:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Quote Author Info in Modal */
.quote-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-100);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-handle {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.author-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.stat-item i {
    font-size: 0.75rem;
}

/* Follow Button in Modal */
.quote-detail-btn.following {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.quote-detail-btn.following:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Stories/Highlights */
.stories-container {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow-x: auto;
    white-space: nowrap;
}

.stories-scroll {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.story-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 3px;
    position: relative;
}

.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.story-name {
    font-size: 0.75rem;
    color: var(--gray-400);
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Post Card (Quote Card) */
.post-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.2s ease;
}

.post-author:hover {
    opacity: 0.8;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #9C27B0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-author:hover .post-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.85rem;
}

.post-category {
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.post-more-btn {
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.post-more-btn:hover {
    background: var(--gray-50);
    color: var(--gray-500);
}

.post-content {
    padding: 0 1.5rem 1rem;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.post-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    margin-right: 0.25rem;
}

.post-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    margin-left: 0.25rem;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.post-action-btn:hover {
    background: var(--gray-50);
    color: var(--gray-500);
}

.post-action-btn.liked {
    color: var(--danger);
    transform: scale(1.1);
}

.post-action-btn.liked i {
    animation: heartbeat 0.6s ease-in-out;
}

.post-action-btn.bookmarked {
    color: var(--warning);
}

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

/* Right Sidebar Widgets */
.widget {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

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

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-500);
}

.widget-more {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.widget-more:hover {
    text-decoration: underline;
}

/* Trending Items */
.trending-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

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

.trending-item:hover {
    background: var(--gray-50);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.trending-category {
    font-size: 0.75rem;
    color: var(--gray-300);
    margin-bottom: 0.25rem;
}

.trending-title {
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.trending-stats {
    font-size: 0.75rem;
    color: var(--gray-300);
}

/* Suggestions (Who to Follow) */
.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.suggestion-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.suggestion-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #9C27B0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.suggestion-handle {
    font-size: 0.8rem;
    color: var(--gray-300);
}

.follow-btn {
    padding: 0.5rem 1rem;
    background: var(--gray-500);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.follow-btn:hover {
    background: var(--gray-400);
}

.follow-btn.following {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

.follow-btn.following:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Mini follow button for post cards */
.follow-btn-mini {
    padding: 0.4rem;
    background: var(--gray-500);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    visibility: visible !important;
    opacity: 1 !important;
}

.follow-btn-mini:hover {
    background: var(--gray-400);
    transform: scale(1.05);
}

.follow-btn-mini.following {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

.follow-btn-mini.following:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Post header actions */
.post-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Quote Detail Modal Specific Styles */
.quote-detail-content {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-500);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-300);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-500);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Right Sidebar Styles */
/* Eski sağ sidebar kuralı silindi */

.sidebar-section {
    margin-bottom: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.sidebar-section-header {
    margin-bottom: 1rem;
}

.sidebar-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section-subtitle {
    font-size: 0.8rem;
    color: #000000;
}

/* Top Quotes Styles */
.top-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.top-quote-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.top-quote-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.top-quote-item:hover .quote-rank {
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.top-quote-item:hover .quote-text {
    color: #0056b3;
    font-weight: 500;
}

.top-quote-item:hover .quote-author {
    color: #007bff;
    font-weight: 600;
}

.top-quote-item:hover .stat-item {
    color: #007bff;
    transform: scale(1.05);
}

.top-quote-item:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.top-quote-item:active .quote-rank {
    transform: scale(0.95);
}

.quote-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quote-content {
    flex: 1;
    min-width: 0;
}

.quote-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 0.5rem;
    font-style: italic;
    transition: all 0.3s ease;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.quote-author {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quote-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.stat-item i {
    font-size: 0.7rem;
}

/* Quick Stats Styles */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trending Categories Styles */
.trending-categories {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.trending-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.trending-category-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.category-info {
    flex: 1;
}

.category-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
}

.category-count {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Feed tab span siyah yap */
.feed-tab span {
    color: #000000 !important;
}

.feed-tab:hover span {
    color: #000000 !important;
}

.feed-tab.active span {
    color: #ffffff !important;
}

/* Feed tab icon siyah yap */
.feed-tab i {
    color: #000000 !important;
}

.feed-tab:hover i {
    color: #000000 !important;
}

.feed-tab.active i {
    color: #ffffff !important;
}
.fas.fa-quote-left {
    color: #ffffff !important;
}

/* Rank number beyaz yap */
.rank-number {
    color: #ffffff !important;
}

/* Loading and Empty States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.loading-state .spinner,
.empty-state i,
.error-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.loading-state .spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .social-right-sidebar {
        display: none;
    }
}

/* Quote Detail Styles */
.quote-detail {
    margin-bottom: 24px;
}

.quote-detail-main {
    margin-bottom: 24px;
}

.quote-detail-text {
    margin-bottom: 16px;
}

.quote-detail-text blockquote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin: 0 0 12px 0;
    font-style: italic;
    padding: 0;
    border: none;
}

.quote-detail-text cite {
    font-size: 1rem;
    color: var(--gray-400);
    text-align: right;
    display: block;
    font-style: normal;
}

.quote-detail-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin: 16px 0;
}

.quote-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.quote-stat i {
    width: 16px;
}

.quote-detail-actions {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.quote-detail-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: var(--gray-400);
}

.quote-detail-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.quote-detail-btn.liked {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(224, 36, 94, 0.3);
}

.quote-detail-btn.liked i {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.quote-detail-btn.bookmarked {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}

/* Comments Section */
.comments-section {
    margin-top: 24px;
}

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

.comments-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    margin: 0;
}

.comment-form {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

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

.comment-submit {
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-submit:hover {
    background: var(--primary-dark);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-400);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.comment-time {
    color: var(--gray-300);
    font-size: 0.8rem;
}

.comment-text {
    color: var(--gray-400);
    line-height: 1.5;
    font-size: 0.9rem;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-300);
}

.no-comments i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-comments h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.no-comments p {
    margin: 0;
    line-height: 1.6;
}

/* Advertisement Spaces */
.ad-space {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem;
    position: fixed;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
}

.ad-left {
    order: 1; /* Between left sidebar and feed */
    left: var(--sidebar-width);
}

.ad-right {
    order: 3; /* Between feed and right sidebar */
    right: 350px; /* Sağ sidebar'ın genişliği kadar sola kaydır */
}

.advertisement-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-height: 200px; /* Maksimum yükseklik sınırı */
}

.advertisement-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.advertisement-image {
    width: 100%;
    height: 160px; /* Sabit yükseklik */
    object-fit: cover;
    background: var(--gray-100);
    display: block;
}

.advertisement-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 6px 8px;
    color: white;
    max-height: 40px; /* İçerik yükseklik sınırı */
    overflow: hidden;
}

.advertisement-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.advertisement-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.advertisement-stats {
    display: none; /* Hide view count */
}

.advertisement-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.advertisement-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive Design */

/* Large Desktop (1280px+) - Full Layout */
@media (min-width: 1281px) {
    .social-layout {
        gap: 1rem;
    }
    
    .social-feed {
        max-width: var(--feed-max-width);
    }
}

/* Desktop (1024px - 1280px) - Hide Ads */
@media (max-width: 1280px) and (min-width: 1025px) {
    .ad-space {
        display: none !important;
    }
    
    .social-right-sidebar {
        display: none;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
    
    .social-feed {
        max-width: 600px;
        margin: 0 auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        /* Sol sidebar için padding */
        padding-left: calc(280px + 2rem) !important;
    }
    
    .social-sidebar {
        width: 280px;
        position: fixed !important;
        left: 0 !important;
    }
}

/* Tablet (768px - 1024px) - Sidebar Collapse */
@media (max-width: 1024px) and (min-width: 769px) {
    .ad-space {
        display: none !important;
    }
    
    .social-right-sidebar {
        display: none;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
    
    .social-sidebar {
        width: 250px;
        position: fixed !important;
        left: 0 !important;
    }
    
    .social-feed {
        max-width: 600px;
        margin: 0 auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 1rem 0.5rem;
        /* Sol sidebar için padding */
        padding-left: calc(250px + 1rem) !important;
        padding-right: 2rem !important;
    }
    
    .modern-navbar {
        padding: 0 1rem;
    }
    
    .navbar-search {
        width: 200px;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .quote-content {
        font-size: 1rem;
    }
}

/* Mobile Landscape (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .social-sidebar {
        display: none;
    }
    
    .ad-space {
        display: none !important;
    }
    
    .social-right-sidebar {
        display: none;
    }
    
    .social-feed {
        padding: 0.5rem;
        max-width: 100%;
        margin: 0;
    }
    
    .navbar-search {
        display: none;
    }
    
    .modern-navbar {
        padding: 0 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .post-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .quote-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .post-actions {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    
    .action-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .post-meta {
        font-size: 0.75rem;
    }
    
    /* Category Icons Mobile */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .category-item {
        padding: 0.5rem;
    }
    
    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
    
    /* Quote of the Day Mobile */
    .quote-of-day {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .quote-of-day-content {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .quote-of-day-author {
        font-size: 0.8rem;
    }
    
    .quote-of-day-stats {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .social-sidebar {
        display: none;
    }
    
    .ad-space {
        display: none !important;
    }
    
    .social-right-sidebar {
        display: none;
    }
    
    .social-feed {
        padding: 0.25rem;
        max-width: 100%;
        margin: 0;
    }
    
    .navbar-search {
        display: none;
    }
    
    .modern-navbar {
        padding: 0 0.25rem;
        height: 50px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-actions {
        gap: 0.25rem;
    }
    
    .navbar-avatar {
        width: 28px;
        height: 28px;
    }
    
    .navbar-username {
        display: none;
    }
    
    .post-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .quote-content {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .post-actions {
        padding: 0.25rem 0;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .action-btn {
        padding: 0.4rem;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .post-meta {
        font-size: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-author {
        font-weight: 600;
    }
    
    /* Category Icons Mobile Small */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        padding: 0.25rem 0;
    }
    
    .category-item {
        padding: 0.25rem;
        text-align: center;
    }
    
    .category-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .category-name {
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    /* Quote of the Day Mobile Small */
    .quote-of-day {
        padding: 0.75rem;
        margin: 0.75rem 0;
        border-radius: 8px;
    }
    
    .quote-of-day-header {
        margin-bottom: 0.5rem;
    }
    
    .quote-of-day-title {
        font-size: 0.9rem;
    }
    
    .quote-of-day-content {
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0.5rem 0;
    }
    
    .quote-of-day-author {
        font-size: 0.75rem;
    }
    
    .quote-of-day-stats {
        gap: 0.25rem;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Feed Header Mobile */
    .feed-header {
        padding: 0.5rem 0;
    }
    
    .feed-title {
        font-size: 1.2rem;
    }
    
    .feed-subtitle {
        font-size: 0.8rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
    }
    
    /* Quote Detail Modal Mobile */
    .quote-detail-modal .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .quote-detail-header {
        padding: 1rem;
    }
    
    .quote-detail-content {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 1rem;
    }
    
    .quote-detail-author {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .quote-detail-actions {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .quote-detail-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Modern Auth Button */
.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.auth-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #000000 !important;
}

.auth-btn:hover i {
    transform: scale(1.1);
}

.auth-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .action-btn {
        min-height: 44px; /* iOS touch target minimum */
        min-width: 44px;
    }
    
    .category-item {
        min-height: 44px;
    }
    
    .post-card {
        transition: none; /* Disable hover effects on touch */
    }
    
    .advertisement-card {
        transition: none;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .auth-btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: slideUp 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-300);
}

