/* FlexProfile.de - Complete Responsive Styles with Emoji & Location Features */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-color: #764ba2;
    --text-color: #14171a;
    --text-muted: #657786;
    --border-color: #e1e8ed;
    --background-color: #f5f8fa;
    --white: #ffffff;
    --danger: #e0245e;
    --success: #17bf63;
    --warning: #ffad1f;
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 15px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 70px;
    --sidebar-width: 280px;
    --main-width: 740px;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
}

.header.sticky {
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* ===== NAVIGATION TOGGLE (HAMBURGER) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== USER MENU ===== */
.user-menu {
    position: relative;
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 280px;
    padding: 0;
    border: 1px solid var(--border-color);
    display: none;
    z-index: 1002;
}

.user-dropdown.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.dropdown-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-username {
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--background-color);
    text-decoration: none;
    color: var(--text-color);
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(224, 36, 94, 0.1);
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--main-width) var(--sidebar-width);
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    
    /* === CUSTOM SCROLLBAR STYLING === */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

/* WebKit Scrollbar (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(102, 126, 234, 0.6) 0%,
        rgba(102, 126, 234, 0.4) 50%,
        rgba(102, 126, 234, 0.6) 100%
    );
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(102, 126, 234, 0.8) 0%,
        rgba(102, 126, 234, 0.6) 50%,
        rgba(102, 126, 234, 0.8) 100%
    );
    transform: scaleY(1.1);
}

.sidebar::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        rgba(102, 126, 234, 1) 0%,
        rgba(102, 126, 234, 0.8) 50%,
        rgba(102, 126, 234, 1) 100%
    );
}

/* Scrollbar Corner */
.sidebar::-webkit-scrollbar-corner {
    background: transparent;
}

/* === ENHANCED HOVER EFFECTS === */
.sidebar:hover {
    /* Smooth scrollbar appearance on hover */
}

.sidebar:hover::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        border-radius: 6px;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .sidebar {
        scrollbar-color: rgba(102, 126, 234, 0.5) rgba(255, 255, 255, 0.1);
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: linear-gradient(
            180deg,
            rgba(102, 126, 234, 0.7) 0%,
            rgba(102, 126, 234, 0.5) 50%,
            rgba(102, 126, 234, 0.7) 100%
        );
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(
            180deg,
            rgba(102, 126, 234, 0.9) 0%,
            rgba(102, 126, 234, 0.7) 50%,
            rgba(102, 126, 234, 0.9) 100%
        );
    }
}

.sidebar-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

/* ===== USER CARD ===== */
.user-card {
    text-align: center;
    margin-bottom: 20px;
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-card-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.user-card-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.user-card-username {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 15px 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    width: 100%;
}

/* ===== COMPOSE CARD ===== */
.compose-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 10;
}

.compose-form {
    width: 100%;
}

.compose-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.compose-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.compose-content {
    flex: 1;
}

.compose-textarea {
    width: 100%;
    min-height: 120px;
    border: none;
    resize: none;
    font-size: 18px;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: var(--text-color);
    line-height: 1.5;
}

.compose-textarea::placeholder {
    color: var(--text-muted);
}

/* ===== IMAGE PREVIEW ===== */
.image-preview-container {
    margin: 15px 0;
}

.image-preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 100%;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(224, 36, 94, 0.8);
    transform: scale(1.1);
}

/* ===== COMPOSE ACTIONS ===== */
.compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.compose-options {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.compose-option {
    position: relative;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.compose-option:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.compose-option.active {
    background: rgba(102, 126, 234, 0.2);
    color: #4f46e5;
    transform: scale(1.1);
}

.compose-submit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.char-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== EMOJI PICKER ===== */
.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.emoji-picker.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.emoji-categories {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.emoji-category {
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.emoji-category:hover,
.emoji-category.active {
    background: rgba(102, 126, 234, 0.1);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-item {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: 18px;
    transition: all 0.1s ease;
}

.emoji-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(1.3);
}

/* ===== LOCATION PICKER ===== */
.location-picker {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    width: 300px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.location-picker.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.location-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.location-suggestions {
    max-height: 200px;
    overflow-y: auto;
}

.location-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.1s ease;
}

.location-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(2px);
}

.location-current {
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    transition: background 0.2s ease;
}

.location-current:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* ===== SELECTED LOCATION/EMOJI DISPLAY ===== */
.selected-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 500;
}

.remove-selection {
    cursor: pointer;
    font-weight: bold;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-selection:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* ===== VISIBILITY SELECTOR ===== */
.visibility-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.visibility-select {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    font-weight: 500;
}

.visibility-select:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.visibility-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== TIMELINE CONTAINER ===== */
.timeline-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.timeline {
    display: flex;
    flex-direction: column;
}

/* ===== POST STYLES ===== */
.post {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.post:last-child {
    border-bottom: none;
}

.post:hover {
    background: rgba(102, 126, 234, 0.02);
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.post-info {
    flex: 1;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.post-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.post-name:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.verified-badge {
    color: var(--primary-color);
    font-size: 16px;
}

/* ===== VISIBILITY INDICATORS ===== */
.post-visibility {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-visibility.followers {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.post-visibility.private {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.post-visibility:hover {
    transform: scale(1.05);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

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

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

/* ===== POST LOCATION ===== */
.post-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    background: rgba(102, 126, 234, 0.05);
    padding: 2px 6px;
    border-radius: 8px;
}

.post-menu {
    position: relative;
}

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

.post-menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.post-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    min-width: 120px;
    display: none;
    z-index: 100;
}

.post-dropdown.show {
    display: block;
}

.post-content {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.post-image {
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-image img:hover {
    transform: scale(1.02);
}

/* ===== POST ACTIONS ===== */
.post-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.post-action:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.post-action.liked {
    color: var(--danger);
}

.post-action.liked:hover {
    background: rgba(224, 36, 94, 0.1);
    color: var(--danger);
}

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

.post-action.bookmarked:hover {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.action-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.post-action:hover .action-icon {
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
.like-btn.liked .action-icon {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

.bookmark-btn.bookmarked .action-icon {
    animation: bookmarkSave 0.4s ease-out;
}

@keyframes bookmarkSave {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

/* ===== WIDGET STYLES ===== */
.widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.widget-body {
    padding: 0;
}

/* ===== USER SUGGESTIONS ===== */
.user-suggestion {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.user-suggestion:hover {
    background: rgba(102, 126, 234, 0.05);
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.suggestion-meta {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== TRENDING ===== */
.trending-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.trending-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.trending-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.trending-topic {
    font-weight: 600;
    margin-bottom: 2px;
}

.trending-posts {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 32px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-content {
    position: relative;
    z-index: 2001;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
}

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

.modal-close:hover {
    background: rgba(224, 36, 94, 0.8);
    transform: scale(1.1);
}

/* ===== LOADING ===== */
.loading-indicator {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.post-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.post-action.loading {
    position: relative;
}

.post-action.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== EMPTY STATES ===== */
.empty-timeline {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-timeline h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.empty-timeline p {
    margin-bottom: 25px;
    font-size: 16px;
}

.empty-widget {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: white;
    border-radius: var(--radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    transform: translateX(400px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification.notification-success {
    border-left-color: var(--success);
}

.notification.notification-error {
    border-left-color: var(--danger);
}

.notification.notification-warning {
    border-left-color: var(--warning);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-icon {
    font-size: 18px;
}

.notification-text {
    flex: 1;
    font-weight: 500;
    color:black;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--text-color);
}

/* ===== MOBILE BACKDROP ===== */
.picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
}

.picker-backdrop.show {
    display: block;
}

/* ===== COMMENT MODAL STYLES ===== */
.comment-modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.comment-modal-content .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.comment-modal-content .modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comment-form-container {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.comment-form {
    width: 100%;
}

.comment-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 15px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-char-counter {
    font-size: 12px;
    color: var(--text-muted);
}

.comments-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.comments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: var(--text-muted);
}

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

.comments-load-more {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* ===== COMMENT STYLES ===== */
.comment {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.comment:hover {
    background: rgba(102, 126, 234, 0.02);
    border-radius: var(--radius);
    padding: 15px;
    margin: 0 -15px;
}

.comment-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.comment-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

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

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

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-author:hover {
    color: var(--primary-color);
}

.comment-username {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

.comment-time {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

.comment-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-reply-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.comment-reply-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== VERIFIED BADGE IN COMMENTS ===== */
.comment .verified-badge {
    color: var(--primary-color);
    font-size: 14px;
    margin-left: 2px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ===== FLAT COMMENT HIERARCHY ===== */
.comment-replies {
    margin-left: 30px;
    margin-top: 10px;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
}

/* Verhindere weitere Verschachtelung */
.comment-replies .comment-replies {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}

/* Reply-Form Styling - direkt unter Haupt-Kommentar */
.comment-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.comment-reply-form .comment-form-avatar {
    width: 32px;
    height: 32px;
}

.comment-reply-form .comment-input {
    min-height: 60px;
    font-size: 13px;
}

/* Verstecke Reply-Buttons in Child-Kommentaren */
.comment-replies .comment-reply-btn {
    display: none !important;
}

/* Alle Replies sehen gleich aus - keine weitere Verschachtelung */
.comment-replies .comment {
    padding: 10px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.comment-replies .comment-avatar {
    width: 28px;
    height: 28px;
}

.comment-replies .comment-author,
.comment-replies .comment-text {
    font-size: 13px;
}

/* Load More Replies Button */
.load-more-replies {
    margin: 10px 0;
    text-align: center;
}

.load-more-replies-btn {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-replies-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* ===== COMMENT EDIT FORM ===== */
.comment-edit-form {
    margin-top: 8px;
}

.comment-edit-form .comment-input {
    width: 100%;
    min-height: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

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

/* ===== COMMENT ACTIONS ===== */
.reply-actions,
.edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== COMMENT LOADING STATES ===== */
.comment.loading {
    opacity: 0.6;
    pointer-events: none;
}

.comment-reply-btn.loading {
    position: relative;
}

.comment-reply-btn.loading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid transparent;
    border-top: 1px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* ===== ACCESSIBILITY ===== */
.emoji-item[role="button"],
.location-item[role="button"] {
    outline: none;
}

.emoji-item[role="button"]:focus,
.location-item[role="button"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.visibility-select:focus,
.post-action:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr var(--main-width);
        gap: 20px;
    }
    
    .sidebar-right {
        display: none;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .sidebar-left {
        order: 2;
        position: static;
        max-height: none;
    }
    
    .main-content {
        order: 1;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
    
    /* Mobile Picker Positioning */
    .emoji-picker,
    .location-picker {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 320px;
        max-height: 70vh;
        z-index: 99999;
    }
    
    .emoji-picker.show,
    .location-picker.show {
        transform: translate(-50%, -50%) !important;
        top: 420px;
    }
    
    /* Mobile Compose */
    .compose-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .compose-header {
        gap: 10px;
    }
    
    .compose-avatar {
        width: 40px;
        height: 40px;
    }
    
    .compose-textarea {
        font-size: 16px;
        min-height: 100px;
    }
    
    .compose-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .compose-options {
        justify-content: space-between;
    }
    
    .visibility-selector {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .visibility-select {
        width: 100%;
        min-width: auto;
    }
    
    .compose-submit {
        justify-content: space-between;
    }
    
    /* Mobile Posts */
    .post {
        padding: 15px;
    }
    
    .post-header {
        gap: 10px;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
    }
    
    .post-visibility {
        font-size: 10px;
        padding: 2px 6px;
        margin-left: 4px;
    }
    
    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .post-meta {
        gap: 6px;
    }
    
    .post-actions {
        gap: 15px;
        justify-content: space-around;
    }
    
    .post-action {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .post-action span:last-child {
        display: none;
    }
    
    .like-text {
        display: none;
    }
    
    /* Mobile Widgets */
    .widget-header {
        padding: 15px;
    }
    
    .user-suggestion {
        padding: 12px 15px;
    }
    
    .trending-item {
        padding: 12px 15px;
    }
    
    .selected-location {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .user-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 5px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        height: 60px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-dropdown {
        width: 250px;
    }
    
    .compose-card {
        padding: 12px;
    }
    
    .compose-options {
        gap: 10px;
    }
    
    .compose-option {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .notification {
        min-width: 280px;
        margin: 0 10px;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .comment-modal-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    /* Mobile Comments */
    .comment {
        padding: 12px 0;
    }
    
    .comment:hover {
        padding: 12px;
        margin: 0 -12px;
    }
    
    .comment-main {
        gap: 10px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-header {
        gap: 6px;
    }
    
    .comment-author,
    .comment-text {
        font-size: 13px;
    }
    
    .comment-username,
    .comment-time {
        font-size: 12px;
    }
    
    .comment-reply-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .comment-replies {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    .comment-replies .comment-avatar {
        width: 24px;
        height: 24px;
    }
    
    /* Comment Modal Mobile */
    .comment-form-container {
        padding: 15px;
    }
    
    .comment-form-avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-input {
        min-height: 60px;
        font-size: 14px;
    }
    
    .comments-container {
        padding: 15px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .emoji-picker,
    .location-picker {
        background: #2a2a2a;
        border-color: #404040;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .emoji-item:hover,
    .location-item:hover {
        background: rgba(102, 126, 234, 0.2);
    }
    
    .post-visibility {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .selected-location {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .visibility-select {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .visibility-select:hover {
        background: #1a1a1a;
        border-color: var(--primary-color);
    }
    
    .post-action:hover {
        background: rgba(102, 126, 234, 0.2);
    }
}

/* ===== HIGH CONTRAST & ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
    .post-visibility {
        opacity: 1;
        font-weight: bold;
        border-width: 2px;
    }
    
    .post-action {
        border: 1px solid currentColor;
    }
    
    .bookmark-btn.bookmarked {
        background: rgba(255, 193, 7, 0.2);
    }
    
    .emoji-item:focus,
    .location-item:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .emoji-picker,
    .location-picker {
        transition: none;
    }
    
    .compose-option,
    .post-action {
        transition: none;
    }
}