/* 공통 스타일 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  }
  
  body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* 탭 스타일 */
  .tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }
  
  .tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background-color: #f9f9f9;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
  }
  
  .tab.active {
    background-color: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
    position: relative;
    bottom: -1px;
    font-weight: bold;
  }
  
  /* 컨텐츠 영역 스타일 */
  .tab-content {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* 리스트 스타일 */
  .post-list {
    list-style: none;
    margin-bottom: 20px;
  }
  
  .post-list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .post-list-item:hover {
    background-color: #f9f9f9;
  }
  
  .post-title {
    flex-grow: 1;
    cursor: pointer;
  }
  
  .post-date {
    color: #888;
    font-size: 0.9em;
    margin-right: 10px;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .pagination button {
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 3px;
  }
  
  .pagination button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
  }
  
  .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* 변환 화면 스타일 */
  .converter {
    display: flex;
    gap: 20px;
  }
  
  .converter-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .converter-column {
    flex: 1;
  }
  
  .converter-textarea {
    width: 100%;
    height: 400px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
  }
  
  .converter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .convert-button {
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.3s;
  }
  
  .convert-button:hover {
    background-color: #0056b3;
  }
  
  /* 결과 출력 영역 */
  .result-area {
    margin-top: 15px;
  }
  
  .result-title {
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  /* 모달 스타일 */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
  }
  
  .modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
  }
  
  .modal-title {
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
  }
  
  .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .modal-button {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .modal-button.cancel {
    background-color: #f1f1f1;
    color: #333;
  }
  
  .modal-button.confirm {
    background-color: #007bff;
    color: #fff;
  }
  
  /* 로딩 스타일 */
  .loading {
    display: none;
    text-align: center;
    margin: 20px 0;
  }
  
  .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-bottom: 10px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* 추가 스타일 */
  .alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    color: #fff;
    animation: fadeOut 3s forwards;
    animation-delay: 2s;
  }
  
  .alert-success {
    background-color: #28a745;
  }
  
  .alert-error {
    background-color: #dc3545;
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
  }
  
  .detail-view {
    display: none;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  .detail-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .detail-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 3px;
  }
  
  .detail-close {
    margin-top: 15px;
    text-align: right;
  }
  
  .detail-close button {
    padding: 5px 10px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .no-posts {
    text-align: center;
    padding: 30px;
    color: #888;
  }
  
  /* 미디어 쿼리 */
  @media (max-width: 768px) {
    .container {
      padding: 10px;
    }
    
    .converter {
      display: none;
    }
    
    .tab-content.converter-tab-content-pc {
      display: none;
    }
    
    .tab-content.converter-tab-content-mobile {
      display: block;
    }
  }
  
  @media (min-width: 769px) {
    .converter-mobile {
      display: none;
    }
    
    .tab-content.converter-tab-content-mobile {
      display: none;
    }
    
    .tab-content.converter-tab-content-pc {
      display: block;
    }
  }