﻿@charset "utf-8";
/* CSS Document */
    /* 모바일 퍼스트 스타일 */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 10px;
    }
    
    .page-header {
      text-align: center;
      margin-bottom: 20px;
      padding: 15px 0;
      border-bottom: 2px solid #007bff;
    }
    
    .page-header h1 {
      color: #333;
      font-size: 20px;
      margin: 0;
    }
    
    /* 검색 폼 - 모바일 우선 */
    .search-form {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
    }
    
    .search-row {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .search-input {
      flex: 1;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 16px;
    }
    
    .search-category {
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 16px;
      background: white;
    }
    
    .search-btn {
      background: #007bff;
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 16px;
    }
    
    .search-btn:hover {
      background: #0056b3;
    }
    
    /* 관리자 전체 선택 */
    .admin-controls {
      margin-bottom: 15px;
      padding: 10px;
      background: #fff3cd;
      border-radius: 4px;
      border: 1px solid #ffeaa7;
    }
    
    .select-all label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: bold;
      color: #856404;
    }
    
    /* 게시글 목록 - 모바일 카드 형태 */
    .post-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 15px;
      margin-bottom: 20px;
    }
    
    .post-card {
      background: white;
      border: 1px solid #e9ecef;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .post-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .post-card-header {
      position: relative;
    }
    
    .post-checkbox {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
    }
    
    .post-checkbox input {
      transform: scale(1.2);
    }
    
    .post-thumbnail {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }
    
    .post-content {
      padding: 15px;
    }
    
    .post-title {
      font-size: 16px;
      font-weight: bold;
      margin: 0 0 10px 0;
      line-height: 1.4;
    }
    
    .post-title a {
      color: #333;
      text-decoration: none;
    }
    
    .post-title a:hover {
      color: #007bff;
    }
    
    .post-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      color: #666;
      margin-bottom: 10px;
    }
    
    .post-meta .author {
      font-weight: bold;
    }
    
    .post-meta .stats {
      display: flex;
      gap: 8px;
    }
    
    .post-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid #f1f3f4;
      padding-top: 10px;
      margin-top: 10px;
    }
    
    .like-btn {
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      color: #495057;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .like-btn:hover {
      background: #e9ecef;
      transform: scale(1.05);
    }
    
    .admin-actions {
      display: flex;
      gap: 5px;
    }
    
    .admin-actions a {
      color: #666;
      text-decoration: none;
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 3px;
      background: #f8f9fa;
    }
    
    .admin-actions a:hover {
      background: #e9ecef;
      color: #333;
    }
    
    /* 글쓰기 버튼 */
    .write-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,123,255,0.3);
      transition: all 0.3s;
      z-index: 1000;
    }
    
    .write-btn:hover {
      background: #0056b3;
      transform: scale(1.1);
    }
    
    /* 관리자 버튼들 */
    .admin-buttons {
      margin-bottom: 20px;
      text-align: center;
    }
    
    .delete-btn {
      background: #dc3545;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
    }
    
    .delete-btn:hover {
      background: #c82333;
    }
    
    /* 페이징 */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 5px;
      margin: 30px 0;
      flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
      padding: 8px 12px;
      border: 1px solid #dee2e6;
      color: #007bff;
      text-decoration: none;
      border-radius: 4px;
      font-size: 14px;
    }
    
    .pagination a:hover {
      background: #e9ecef;
    }
    
    .pagination .active {
      background: #007bff;
      color: white;
      border-color: #007bff;
    }
    
    /* 빈 상태 */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #666;
    }
    
    .empty-state i {
      font-size: 48px;
      margin-bottom: 20px;
      color: #ddd;
    }
    
    /* 태블릿 이상 (768px+) */
    @media (min-width: 768px) {
      .container {
        padding: 20px;
      }
      
      .page-header h1 {
        font-size: 28px;
      }
      
      .search-row {
        flex-direction: row;
        align-items: center;
      }
      
      .search-input {
        font-size: 14px;
      }
      
      .search-category {
        font-size: 14px;
        max-width: 200px;
      }
      
      .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
      
      .post-thumbnail {
        height: 180px;
      }
      
      .post-title {
        font-size: 18px;
      }
      
      .post-meta {
        font-size: 13px;
      }
      
      .write-btn {
        position: static;
        width: auto;
        height: auto;
        border-radius: 4px;
        padding: 12px 24px;
        font-size: 16px;
        margin: 20px auto;
        display: block;
      }
    }
    
    /* 데스크톱 (1024px+) */
    @media (min-width: 1024px) {
      .post-grid {
        grid-template-columns: repeat(3, 1fr);
      }
      
      .post-thumbnail {
        height: 200px;
      }
    }
    
    /* 대형 데스크톱 (1200px+) */
    @media (min-width: 1200px) {
      .post-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
 