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

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #16181c;
    --bg-tertiary: #1e2024;
    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --accent: #1d9bf0;
    --accent-hover: #1a8cd8;
    --border: #2f3336;
    --success: #00ba7c;
    --danger: #f4212e;
    --warning: #ffd400;
    --card-shadow: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9f9;
    --bg-tertiary: #eff3f4;
    --text-primary: #0f1419;
    --text-secondary: #536471;
    --border: #eff3f4;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.top-nav-main {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    height: 60px;
}

.top-nav-search {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: var(--bg-tertiary);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo i {
    font-size: 28px;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.search-container-mobile {
    flex: 1;
    position: relative;
    max-width: 100%;
}

.search-container {
    display: none;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 45px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.clear-search:hover {
    background: var(--bg-tertiary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:active i {
    transform: rotate(180deg);
}

.auth-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-btn:hover {
    background: var(--accent-hover);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.user-avatar:hover {
    border-color: var(--accent);
}

/* Layout */
.app-container {
    margin-top: 112px;
    display: flex;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar */
.sidebar {
    width: 280px;
    position: fixed;
    top: 112px;
    left: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.mobile-hidden {
    transform: translateX(-100%);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
}

.category-item:hover {
    background: var(--bg-tertiary);
}

.category-item.active {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-right: 3px solid var(--accent);
}

.category-item i {
    font-size: 22px;
    width: 28px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    border-right: 1px solid var(--border);
    max-width: 900px;
}

.content-header {
    position: sticky;
    top: 112px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 10;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
}

/* Posts Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    transition: background 0.2s;
    cursor: pointer;
}

.post-card:hover {
    background: var(--bg-tertiary);
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.post-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-summary {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.post-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s;
    padding: 6px 10px;
    border-radius: 8px;
}

.action-btn:hover {
    color: var(--accent);
    background: rgba(29, 155, 240, 0.1);
}

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

.action-btn.liked:hover {
    color: var(--danger);
    background: rgba(244, 33, 46, 0.1);
}

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

.action-btn.bookmarked:hover {
    color: var(--warning);
    background: rgba(255, 212, 0, 0.1);
}

.action-btn i {
    font-size: 16px;
}

.action-count {
    font-weight: 600;
}

/* Share Button */
.share-btn {
    position: relative;
}

.share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
    display: none;
    min-width: 200px;
    box-shadow: 0 4px 12px var(--card-shadow);
    z-index: 100;
}

.share-menu.active {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.share-option:hover {
    background: var(--bg-tertiary);
}

/* Right Sidebar */
.right-sidebar {
    width: 350px;
    position: fixed;
    top: 112px;
    right: 0;
    bottom: 0;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.trending-widget,
.social-widget {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.trending-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

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

.trending-item:hover {
    background: var(--bg-tertiary);
    padding-left: 8px;
    margin-left: -8px;
    border-radius: 8px;
}

.trending-category {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.trending-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.trending-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

/* Featured Section */
.featured-section {
    border-bottom: 1px solid var(--border);
    padding: 20px;
    background: var(--bg-secondary);
}

.featured-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-title i {
    color: var(--warning);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.featured-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.featured-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

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

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.google-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-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;
}

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

.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.switch-auth a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* Verification Code */
.verification-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.verification-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.verification-input:focus {
    outline: none;
    border-color: var(--accent);
    transform: scale(1.05);
}

.resend-code {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.resend-code button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.resend-code button:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    text-decoration: none;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 16px;
}

.forgot-password a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success);
}

/* Success/Error Messages */
.success-message {
    background: rgba(0, 186, 124, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-message i {
    font-size: 24px;
    flex-shrink: 0;
}

.error-message {
    background: rgba(244, 33, 46, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px var(--card-shadow);
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.skeleton-title {
    height: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 70%;
}

.skeleton-text {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-image {
    height: 300px;
    border-radius: 16px;
    margin: 12px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 55px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px var(--card-shadow);
    display: none;
    z-index: 1001;
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

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

/* Post Detail View */
.post-detail-view {
    display: none;
}

.post-detail-view.active {
    display: block;
}

.post-detail-header {
    position: sticky;
    top: 112px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--bg-tertiary);
}

.post-detail-content {
    padding: 20px;
}

.post-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-wrap: wrap;
}

.post-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.post-detail-summary {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.post-detail-actions {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Comments */
.comments-section {
    margin-top: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.comments-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.comment-submit {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

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

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

.comment-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
}

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

.comment-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Profile */
.profile-container {
    max-width: 100%;
}

.profile-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid var(--accent);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 20px;
    word-wrap: break-word;
}

.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 0.9;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    overflow-x: auto;
}

.profile-tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.profile-tab:hover {
    background: var(--bg-tertiary);
}

/* Responsive */
@media (min-width: 1280px) {
    .right-sidebar {
        display: block;
    }

    .main-content {
        margin-right: 350px;
    }
}

@media (max-width: 1024px) {
    .sidebar.desktop-visible {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }
    
    .sidebar {
        top: 112px;
    }
    
    .sidebar-overlay {
        top: 112px;
    }
}

@media (max-width: 768px) {
    .top-nav-main {
        padding: 10px 12px;
    }
    
    .top-nav-search {
        padding: 10px 12px;
    }
    
    .app-container {
        margin-top: 112px;
    }

    .logo span {
        font-size: 18px;
    }

    .content-header {
        padding: 12px 16px;
        top: 112px;
    }

    .post-card {
        padding: 12px 16px;
    }

    .post-detail-content {
        padding: 16px;
    }

    .featured-section {
        padding: 16px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .post-detail-header {
        top: 112px;
    }
    
    .verification-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 8px;
    }

    .auth-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .post-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .verification-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }
    
    .verification-inputs {
        gap: 6px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
}
