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

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: #DAE0E6;
    color: #1c1c1c;
    line-height: 1.4;
    font-size: 14px;
}

.header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #EDEFF1;
    padding: 0;
}

.header-top {
    background-color: #FF4500;
    height: 4px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1c1c1c;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #FF4500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-weight: bold;
    font-size: 16px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #EDEFF1;
    border-radius: 4px;
    background-color: #F6F7F8;
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.nav a {
    color: #1c1c1c;
    text-decoration: none;
    font-size: 14px;
}

.nav a:hover {
    color: #0079D3;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
}

.tabs {
    background-color: #FFFFFF;
    border: 1px solid #EDEFF1;
    border-radius: 4px 4px 0 0;
    display: flex;
    gap: 0;
    margin-bottom: -1px;
}

.tab {
    padding: 12px 20px;
    color: #7c7c7c;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    background-color: #F6F7F8;
}

.tab.active {
    color: #0079D3;
    border-bottom-color: #0079D3;
}

.post-card {
    background-color: #FFFFFF;
    border: 1px solid #EDEFF1;
    border-radius: 4px;
    display: flex;
    margin-bottom: 10px;
}

.vote-section {
    background-color: #F8F9FA;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 40px;
    border-right: 1px solid #EDEFF1;
}

.vote-arrow {
    width: 24px;
    height: 24px;
    color: #878A8C;
    font-size: 20px;
    cursor: default;
}

.vote-arrow.up:hover {
    color: #FF4500;
}

.vote-arrow.down:hover {
    color: #7193FF;
}

.vote-count {
    font-weight: bold;
    font-size: 12px;
    color: #1c1c1c;
}

.post-content {
    padding: 12px;
    flex: 1;
}

.post-meta {
    font-size: 12px;
    color: #7c7c7c;
    margin-bottom: 8px;
}

.post-meta a {
    color: #1c1c1c;
    text-decoration: none;
    font-weight: bold;
}

.post-meta a:hover {
    text-decoration: underline;
}

.subreddit {
    color: #1c1c1c;
    font-weight: bold;
}

.username {
    color: #1c1c1c;
}

.mod-badge {
    background-color: #46D160;
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 4px;
}

.pinned-badge {
    background-color: #46D160;
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 6px;
}

.post-title {
    font-size: 16px;
    font-weight: normal;
    color: #0079D3;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}

.post-title:hover {
    text-decoration: underline;
}

.post-title.large {
    font-size: 18px;
    font-weight: bold;
    color: #1c1c1c;
}

.post-preview {
    color: #1c1c1c;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.post-actions {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #7c7c7c;
    font-weight: bold;
}

.action-btn {
    color: #7c7c7c;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 2px;
}

.action-btn:hover {
    background-color: #F6F7F8;
}

.comment-section {
    margin-top: 20px;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-left: 0;
}

.comment.nested {
    padding-left: 40px;
    border-left: 2px solid #EDEFF1;
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: #FF4500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.avatar.blue {
    background-color: #0079D3;
}

.avatar.green {
    background-color: #46D160;
}

.avatar.purple {
    background-color: #7C5CBF;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    font-size: 12px;
    color: #7c7c7c;
    margin-bottom: 6px;
}

.comment-text {
    font-size: 14px;
    color: #1c1c1c;
    line-height: 1.6;
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #7c7c7c;
    font-weight: bold;
}

.sidebar {
    width: 310px;
    flex-shrink: 0;
}

.sidebar-card {
    background-color: #FFFFFF;
    border: 1px solid #EDEFF1;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
}

.sidebar-header {
    background-color: #0079D3;
    color: #FFFFFF;
    padding: 12px;
    margin: -12px -12px 12px -12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.sidebar-title {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: #7c7c7c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EDEFF1;
}

.sidebar-text {
    font-size: 13px;
    color: #1c1c1c;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sidebar-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 16px;
    font-weight: bold;
    color: #1c1c1c;
}

.stat-label {
    font-size: 11px;
    color: #7c7c7c;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid #EDEFF1;
    font-size: 13px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-link {
    color: #0079D3;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.sidebar-link:hover {
    text-decoration: underline;
}

.btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    cursor: default;
}

.btn-primary {
    background-color: #0079D3;
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    background-color: #0060A8;
}

.btn-orange {
    background-color: #FF4500;
    color: #FFFFFF;
    border: none;
}

.btn-orange:hover {
    background-color: #E03D00;
}

.btn-outline {
    background-color: transparent;
    color: #0079D3;
    border: 1px solid #0079D3;
}

.btn-outline:hover {
    background-color: #F6F7F8;
}

.btn-full {
    width: 100%;
    display: block;
}

.info-box {
    background-color: #E9F5FF;
    border-left: 4px solid #0079D3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 2px;
}

.info-box-title {
    font-weight: bold;
    color: #0079D3;
    margin-bottom: 8px;
}

.warning-box {
    background-color: #FFF4E6;
    border-left: 4px solid #FF4500;
    padding: 15px;
    margin: 15px 0;
    border-radius: 2px;
}

.warning-box-title {
    font-weight: bold;
    color: #FF4500;
    margin-bottom: 8px;
}

.success-box {
    background-color: #E8F5E9;
    border-left: 4px solid #46D160;
    padding: 15px;
    margin: 15px 0;
    border-radius: 2px;
}

.success-box-title {
    font-weight: bold;
    color: #46D160;
    margin-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table th {
    background-color: #F6F7F8;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #EDEFF1;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #EDEFF1;
}

table tr:hover {
    background-color: #F6F7F8;
}

.footer {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    text-align: center;
    color: #7c7c7c;
    font-size: 12px;
    border-top: 1px solid #EDEFF1;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a {
    color: #0079D3;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .nav {
        display: none;
    }
    
    .search-bar {
        max-width: 100%;
    }
}
