/* Notice Page Styles */

/* Main Content Area */
.notice-main {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: calc(100vh - 200px);
}

/* Error Message */
.notice-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #dc2626;
}

/* Empty State */
.notice-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.notice-empty p {
  font-size: 1rem;
  margin-top: 8px;
}

/* Notice List */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.notice-item:hover {
  border-color: #ff8c00;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
  transform: translateY(-2px);
}

.notice-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.notice-badge {
  flex-shrink: 0;
  background-color: #fff7ed;
  color: #ea580c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.notice-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}

.notice-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

.notice-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #9ca3af;
}

/* Pagination */
.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  border-color: #ff8c00;
  color: #ff8c00;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-num:hover {
  border-color: #ff8c00;
  color: #ff8c00;
}

.pagination-num.active {
  background: #ff8c00;
  border-color: #ff8c00;
  color: #ffffff;
}

.pagination-dots {
  padding: 0 8px;
  color: #9ca3af;
}

/* Notice Detail */
.notice-detail {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}

.notice-detail-header {
  padding: 32px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

.notice-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.4;
}

.notice-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-detail-meta .notice-date,
.notice-detail-meta .notice-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.notice-detail-content {
  padding: 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  min-height: 200px;
}

.notice-detail-footer {
  padding: 24px 32px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1f2937;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #374151;
}

/* Responsive */
@media (max-width: 768px) {
  .notice-main {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .notice-item-content {
    width: 100%;
  }

  .notice-title {
    white-space: normal;
    overflow: visible;
  }

  .notice-item-meta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .notice-detail-header {
    padding: 24px 20px;
  }

  .notice-detail-title {
    font-size: 1.25rem;
  }

  .notice-detail-content {
    padding: 24px 20px;
  }

  .notice-detail-footer {
    padding: 20px;
  }

  .pagination-num {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .px-6 {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .notice-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination-numbers {
    gap: 2px;
  }

  .pagination-num {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
  }

  .pagination-btn {
    width: 32px;
    height: 32px;
  }
}
