* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #e7e9ea;
    line-height: 1.3;
}

/* Link Styles */
a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    color: #79c0ff;
}

a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

a:focus {
    color: #79c0ff;
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
    border-radius: 2px;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Sidebar - Twitter Style */
.sidebar {
    width: 275px;
    background-color: #000;
    padding: 12px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #2f3336;
}

.sidebar-header {
    padding: 12px;
    margin-bottom: 12px;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #e7e9ea;
}

.nav-items {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 20px;
    font-weight: 400;
}

.nav-item:hover {
    background-color: #181818;
}

.nav-item.active {
    font-weight: 700;
}

.nav-icon {
    margin-right: 20px;
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    color: #e7e9ea;
}

.post-button {
    width: 100%;
    background-color: #1d9bf0;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-button:hover {
    background-color: #1a8cd8;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 275px;
    border-left: 1px solid #2f3336;
    border-right: 1px solid #2f3336;
    background-color: #000;
}

/* Profile Section */
.profile-section {
    border-bottom: 1px solid #2f3336;
}

.profile-nav {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.65);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2f3336;
}

.back-arrow {
    font-size: 20px;
    margin-right: 30px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-arrow:hover {
    background-color: #181818;
}

.profile-nav-name {
    font-size: 20px;
    font-weight: 800;
    color: #e7e9ea;
}

.post-count {
    font-size: 13px;
    color: #71767b;
}

.profile-banner {
    position: relative;
    height: 200px;
    background-color: #333639;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture {
    position: absolute;
    bottom: -67px;
    left: 16px;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid #000;
    background-color: #000;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    padding: 12px 16px 16px;
    margin-top: 67px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.edit-profile {
    background-color: transparent;
    color: #e7e9ea;
    border: 1px solid #536471;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.edit-profile:hover {
    background-color: #181818;
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #e7e9ea;
    margin-bottom: 0;
}

.verified {
    color: #1d9bf0;
    margin-left: 4px;
}

.profile-handle {
    font-size: 15px;
    color: #71767b;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 15px;
    color: #e7e9ea;
    margin-bottom: 12px;
    line-height: 1.3;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #71767b;
}

.follow-stats {
    display: flex;
    gap: 20px;
    font-size: 15px;
}

.following, .followers {
    color: #71767b;
    cursor: pointer;
    transition: text-decoration 0.2s;
}

.following:hover, .followers:hover {
    text-decoration: underline;
}

.following strong, .followers strong {
    color: #e7e9ea;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #2f3336;
}

.profile-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #71767b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 4px solid transparent;
    position: relative;
}

.profile-tab:hover {
    background-color: #080808;
}

.profile-tab.active {
    color: #e7e9ea;
    font-weight: 700;
    border-bottom-color: #1d9bf0;
}

/* Search Container */
.search-container {
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
    background-color: #000;
}

#search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #2f3336;
    border-radius: 20px;
    font-size: 15px;
    background-color: #202327;
    color: #e7e9ea;
    outline: none;
}

#search-input:focus {
    border-color: #1d9bf0;
    background-color: #000;
}

#search-input::placeholder {
    color: #71767b;
}

/* Tweet Feed */
.tweet-feed {
    background-color: #000;
}

.tweet-card {
    border-bottom: 1px solid #2f3336;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    gap: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tweet-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.tweet-card:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.tweet-card.crossed {
    opacity: 0.6;
}

.tweet-card.crossed::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    right: 16px;
    height: 1px;
    background: #71767b;
    transform: translateY(-50%);
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1d9bf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

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

.tweet-author {
    font-weight: 700;
    color: #e7e9ea;
}

.tweet-handle,
.tweet-date {
    color: #71767b;
    font-size: 15px;
}

.tweet-title {
    font-weight: 700;
    color: #e7e9ea;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tweet-description {
    color: #e7e9ea;
    line-height: 1.3;
    margin-bottom: 12px;
}

.tweet-image {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2f3336;
}

.tweet-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.tweet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.tweet-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tweet-tag {
    background: #1d9bf0;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Right Sidebar */
.right-sidebar {
    width: 290px;
    padding: 16px;
    background-color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 68px;
    }
    
    .nav-text {
        display: none;
    }
    
    .post-button {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        padding: 0;
        font-size: 24px;
    }
    
    .main-content {
        margin-left: 68px;
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #71767b;
    font-size: 15px;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    90%, 100% { content: ""; }
} 