/* 사용자 프로필 네비게이션 버튼 */
.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    color: var(--text-on-glass);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.nav-profile-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-light);
}

.nav-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 메인 컨텐츠 */
.main {
    position: relative;
    min-height: 100vh;
    z-index: var(--z-content);
    padding-top: 72px;
    padding-bottom: 0;
}

/* 페이지 헤더 */
.page-header {
    padding: 60px 24px 40px;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-accent);
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
}

/* 작성 섹션 */
.write-section {
    padding: 0 24px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.write-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.write-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.write-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
}

.write-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.write-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: var(--border-radius-full);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--button-shadow);
}

.write-btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.write-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
}

/* 게시글 섹션 */
.posts-section {
    padding: 0 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 게시글 카드 */
.post-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: var(--card-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--card-shadow),
        0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--glass-border-light);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    object-fit: contain;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-accent);
    font-weight: 600;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 로딩 인디케이터 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-indicator p {
    font-size: 14px;
    margin-top: 16px;
}

/* 빈 상태 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.7;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 반응형 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px 32px;
    }
    
    .write-section {
        padding: 0 20px 24px;
    }
    
    .write-container {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .write-prompt {
        width: 100%;
    }
    
    .write-btn {
        width: 100%;
        justify-content: center;
    }
    
    .posts-section {
        padding: 0 20px 60px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .write-text {
        font-size: 14px;
    }
    
    .post-title {
        font-size: 16px;
    }
}

/* 애니메이션 */
.post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:nth-child(7) { animation-delay: 0.35s; }
.post-card:nth-child(8) { animation-delay: 0.4s; }
.post-card:nth-child(9) { animation-delay: 0.45s; }
.post-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
