:root {
    --primary-color: #a2c3db;
    --accent-color: #ff6b6b;
    --bg-dark: #1f1f1f;
    --bg-card: #333333;
    --text-light: #e0e0e0;
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 12px rgba(0,0,0,0.2);
}

/* Main Content Styling */
main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Search Controls */
.search-controls {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    position: sticky;
    top: 1rem;
    z-index: 90;
    background-color: var(--bg-dark);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background-color: var(--bg-card);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.search-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.tabs, .sort-controls {
    display: flex;
    gap: 0.5rem;
}

.tab-button, .sort-button {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    background-color: var(--bg-card);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover, .sort-button:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.tab-button.active, .sort-button.active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-soft);
}
/* Post Styling */
.post {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    width: 100%;
    max-width: 800px;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.username {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.timestamp {
    color: #888;
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
    word-wrap: break-word;
}

/* User Card Styling */
.user-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
}
/* Interaction Buttons */
.interaction-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.interaction-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
}

.interaction-button:hover {
    background: rgba(162, 195, 219, 0.1);
    transform: scale(1.05);
}

.interaction-button.liked {
    color: var(--accent-color);
}

.interaction-button.liked i {
    animation: likeAnimation 0.3s ease;
}

/* Trending Section */
.trending-section {
    position: fixed;
    right: 2rem;
    top: 2rem;
    width: 300px;
    background-color: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.trending-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.trending-hashtags {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trending-hashtag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
}
/* Hashtag Styling */
.hashtag {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(162, 195, 219, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.2rem;
}

.hashtag:hover {
    background: rgba(162, 195, 219, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Animations */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .trending-section {
        display: none;
    }
}

@media (max-width: 768px) {
    aside {
        display: none;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .search-options {
        flex-direction: column;
    }

    .sort-controls {
        width: 100%;
        justify-content: center;
    }
}