/* 디시인사이드 스타일 피드 */

.dc-style-container {
  padding: 20px;
  background: #f5f6f7;
  min-height: calc(100vh - 200px);
}

.gallery-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a90e2;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.more-link {
  color: #4a90e2;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.more-link:hover {
  color: #357abd;
  text-decoration: underline;
}

/* 핫 갤러리 그리드 */
.hot-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.hot-gallery-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.hot-gallery-item:hover {
  background: #fff;
  border-color: #4a90e2;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
  transform: translateY(-2px);
}

.gallery-icon {
  font-size: 32px;
  margin-right: 12px;
}

.gallery-info {
  flex: 1;
}

.gallery-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.gallery-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.active-users {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff3838 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* 갤러리 필터 */
.gallery-filter {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #4a90e2;
  color: #4a90e2;
}

.filter-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* 갤러리 리스트 */
.gallery-list {
  display: grid;
  gap: 20px;
}

.gallery-category {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.category-title {
  background: #f8f9fa;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}

.gallery-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: #e5e5e5;
  padding: 1px;
}

.gallery-item {
  background: white;
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-item:hover {
  background: #f0f6ff;
}

.gallery-title {
  font-size: 13px;
  color: #333;
  flex: 1;
}

.post-count {
  font-size: 12px;
  color: #999;
}

.new-badge {
  background: #10b981;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

.hot-mini {
  background: #ff3838;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

/* 실시간 게시글 */
.realtime-list {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.realtime-post {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  cursor: pointer;
}

.realtime-post:hover {
  background: #f8f9fa;
}

.realtime-post:last-child {
  border-bottom: none;
}

.post-gallery-tag {
  background: #4a90e2;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 10px;
  white-space: nowrap;
}

.post-title {
  flex: 1;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-comment-count {
  color: #ff3838;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.post-author {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
  min-width: 80px;
}

.post-time {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
}

.post-views {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
}

.refresh-btn {
  padding: 6px 12px;
  background: white;
  border: 1px solid #4a90e2;
  color: #4a90e2;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: #4a90e2;
  color: white;
}

/* 갤러리 내부 페이지 */
.gallery-page {
  padding: 20px;
  background: #f5f6f7;
  min-height: calc(100vh - 200px);
}

.gallery-header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-title-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.gallery-main-icon {
  font-size: 48px;
}

.gallery-main-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.gallery-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.gallery-stats-bar {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* 게시글 리스트 (디시 스타일) */
.dc-post-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-list-header {
  display: flex;
  background: #4a90e2;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.post-list-header > div {
  padding: 10px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.post-list-header > div:last-child {
  border-right: none;
}

.col-num { width: 60px; text-align: center; }
.col-category { width: 100px; }
.col-title { flex: 1; }
.col-author { width: 120px; }
.col-date { width: 80px; }
.col-views { width: 60px; text-align: center; }
.col-likes { width: 60px; text-align: center; }

.post-list-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  cursor: pointer;
}

.post-list-item:hover {
  background: #f8f9fa;
}

.post-list-item > div {
  padding: 12px 15px;
  font-size: 13px;
}

.post-number {
  text-align: center;
  color: #999;
  font-size: 12px;
}

.post-category-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #e5e7eb;
  color: #374151;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.post-title-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-title-text {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-title-text:hover {
  color: #4a90e2;
  text-decoration: underline;
}

.comment-count {
  color: #ff3838;
  font-size: 12px;
  font-weight: 600;
}

.post-author-name {
  color: #666;
  font-size: 12px;
}

.post-date-text {
  color: #999;
  font-size: 12px;
}

.post-views-count {
  color: #999;
  font-size: 12px;
  text-align: center;
}

.post-likes-count {
  color: #4a90e2;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
}

/* 글쓰기 버튼 */
.write-btn-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.write-post-btn {
  padding: 10px 20px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.write-post-btn:hover {
  background: #357abd;
  transform: translateY(-1px);
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: #4a90e2;
  color: #4a90e2;
}

.page-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .hot-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-items {
    grid-template-columns: 1fr;
  }
  
  .gallery-stats-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .post-list-header,
  .post-list-item {
    font-size: 12px;
  }
  
  .col-category,
  .col-author,
  .col-views,
  .col-likes {
    display: none;
  }
}