@charset "UTF-8";
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

@font-face {
    font-family: 'PFStardust';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/PFStardust.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    unicode-range: U+AC00-D7A3; /* 한글 유니코드 범위 */ }

:root {
  --line-color: rgb(212, 212, 212);
  --font-color-hightright: rgb(255, 187, 0);
}

.clearfix {
  content: "";
  clear: both;
  display: table;
}

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  background-color: #000;
}

body {
  font-family: "Share Tech Mono", "PFStardust", "Nanum Gothic Coding", "D2Coding", monospace;

  background-color: #000;
  background: url("./images/background-2.png") center top / cover repeat-x;
  background-size: clamp(0px, 100vw, 1200px) auto; /* 1200px 넘게 확대 X */
  
  margin: 0 auto;
  display: flex;             /* Flexbox로 설정 */
  flex-direction: column; /* ← row → column */
  align-items: center; 
  height: 1500px; 
}

button {
  font-family: "Share Tech Mono", "Nanum Gothic Coding", "D2Coding", monospace;
}

.header {
  height: 400px; width: 100%;
}

#container { /*큰 외곽 박스*/
  position: relative;
  width: 900px;
  height: 610px;
  border: var(--line-color) solid 4px;
  border-radius: 7px;
  border-top-left-radius: 0;
}

#container::before {
  content: "tkdrjw.today/Jlwn"; /* 텍스트 직접 넣기 */
  align-content: left;
  position: absolute;
  top: -40px;     /* 위로 띄우기 */
  left: -8px;     /* 왼쪽으로 조금 삐져나가게 */
  
  margin-left: 5px;
  padding: 8px 150px 6px 15px;
  background: var(--line-color);
  color: #000;
  font-size: 19px;
  letter-spacing: .003em;

  border: 1px solid #fff;

    /* 여기서 '오른쪽 위 모서리만' 컷 → 오각형 */
  --cut: 40px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    0 100%
  );
}

#main { /* 레이아웃용 */
  display: grid;
  grid-template-rows: 45px 1fr;
  height: 600px;
  overflow: hidden;
}

.topbar { /* 주소, 카테고리경로, 검색창 탑뷰 */
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding-left: 10px;
  font-size: 18px;
  border-bottom: var(--line-color) solid 3px;
  color: var(--line-color);
}

.topbar-url {
  margin-top: 5px;
}

.topbar-now-page {
  width: 280px;
  height: 17px;
  font-size: 16px;
  padding-top: 8px; padding-left: 15px;
  border-left: var(--line-color) solid 3px;
  white-space: nowrap;
  overflow: hidden;      /* 넘치는 부분 자르기 */
  text-overflow: ellipsis;
}

.search-menu .search .searchInput{
  width: 260px;
  height: 30px;
  padding: 0 7px;
  margin-left: 5px; margin-top: 3px;
  border: 1px solid var(--line-color);
  border-radius: 5px;
  background: rgba(218, 218, 218, 0.082);
  color: #eee;
  outline: none;
  box-sizing: border-box;
}

.search {
  position: relative;
  display: inline-block;
}

.searchInput {
  width: 240px;
  height: 36px;
  padding-right: 40px; /* 버튼 자리 확보 */
  border: 1px solid #fff;
  background: transparent;
  color: #eee;
  box-sizing: border-box;
}

.searchBtn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  padding: 0; padding-top: 2px;
  cursor: pointer;
}

.searchBtn img {
  width: 100%;
  height: 100%;
  display: block;
}


/* placeholder 스타일 */
.search-menu .search .searchInput::placeholder{
  font-family: "Share Tech Mono";
  padding-top: 10px;
  color: var(--line-color);
  opacity: 0.7;
}

.mainpage { /* 카테고리탭 + 본문 */
  display: grid;
  grid-template-columns: 1fr 60px;

  margin: 7px;
}

.view { /* 사이드바 + 글본문 프레임 */
  display: grid;
  grid-template-columns: 28% 1fr;
  grid-template-rows: 1fr 30px;
  
  border: var(--line-color) solid 3px;
  border-radius: 5px;
}

/* 사이드바 */

.sidebar { /* 왼쪽 사이드바 */
  display: grid;
  grid-template-rows: 230px auto;
}

.proflie {
  display: grid;
  grid-template-rows: 40px 1fr;
  margin: 7px;
  border: var(--line-color) solid 1px;
  border-radius: 5px;
}

.proflie-top {
  color: var(--line-color);
  align-content: center;
  text-align: center;
  font-size: 18px;
  border-bottom: var(--line-color) 1px solid;
}

.box-profile {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.box-profile .inner-box{
  position: relative;
  height: 180px;        /* 프레임 세로값(원하는 높이로) */
  overflow: hidden;
}

.box-profile .img-profile{
  position: absolute;   /* 박스 기준으로 꽉 채우기 */
  inset: 0;             /* top:0; right:0; bottom:0; left:0;와 같음 */
  width: 100%;
  height: 100% !important;
  object-fit: cover;    /* 비율 유지 + 가로/세로 남는 부분 잘라냄 */
  object-position: center; /* 중앙 기준으로 자르기 */
  display: block;
}

/* 블로그 위젯 */
.widgetbox {
  display: flex;
  flex-direction: column;

  margin: 7px;
  margin-top: 0;
  padding: 5px;
  border: var(--line-color) solid 1px;
  border-radius: 5px;
  gap: 5px;
}

.widget {
  width: 100%;
  border-radius: 5px;
}

/* 음악 */
.music-player {
  height: 30px;
  background-color: rgb(179, 179, 179);
}

/* 공지사항 */
.notice {
  display: grid;
  grid-template-rows: 32px 1fr;
  height: 70px;
}

.notice-title {
  margin: 5px;
  padding-left: 5px;
  color: var(--line-color);
  border-bottom: var(--line-color) 1px solid;
}

.notice-box {
  color: var(--line-color);
  border: var(--line-color) 1px solid;
  padding: 5px;
  padding-left: 15px;  padding-top: 7px;
  margin: 5px; margin-top: 0;
  border-radius: 5px;
}

/* 시계 */
.clock {
  height: 20px;
}

#time {
  color: var(--line-color);
  font-size: 20px;
  text-align: center;
  margin: 5px; margin-top: 0;
  border-bottom: var(--line-color) 1px solid;
}

/* 밑쪽의 버튼 + 투뎃위젯 */
.btn-today {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 130px;
}

.btnbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin: 5px 10px 5px 10px;

}

.widgetbtn {
  font-size: 18px;
  font-weight: 500;
  color: var(--line-color);

  width: 100%; height: 35px;
  border: var(--line-color) solid 2px;
  background-color: transparent;
  border-radius: 5px;
}

.todaybox {
  border-left: var(--line-color) solid 3px;
  margin: 0 7px 7px 0;
  padding-left: 15px; padding-top: 10px;
  color: var(--line-color);
}

.today {
  font-size: 20px;
  font-weight: 600;
}

.todayvalue {
  font-size: 18px;
  color: var(--font-color-hightright);
}

.mention {
  margin: -5px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.486);
}

/* 글 본문 내용 - 카테고리 뷰 */

.postview { /* 글본문 */
  position: relative;
  align-items: center;
  justify-content:center;
  height: 460px;
  margin: 7px;
  margin-left: 0;
  margin-right: 0;
  border-left: var(--line-color) solid 2px;
  padding: 20px;

  color: var(--line-color);
}

.thumb-grid a { color: inherit; text-decoration: none; }

/* 그리드 레이아웃 */
.thumb-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 카드 최소폭 = 140px */
  gap: 10px;
  row-gap: 20px;
  margin: -10px 30px 0 30px;
  padding: 0;
  list-style: none;
  min-width: 0;            /* grid에서 가로 넘침 방지 */
}

/* 카드 */
.card{
  width: 130px; height: 160px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-color);
  border-radius: 6px;
  margin-left: 10px;
  overflow: hidden;
}

/* 링크 래퍼 */
.card-link{ display: block; }

/* 썸네일: 정사각형 + 커버 */
.thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;     /* 지원 안 하면 아래 백업 코드도 추가 */
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.thumb img{
  width: 100%; height: 100%;
  object-fit: cover; 
  display: block;
}

/* 썸네일 없는 글 표시 */
.no-thumb{
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: 2px;
  color: #999;
}

.title{
  padding: 8px 8px 10px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--line-color);
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;           /* 2줄 말줄임 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-title-box {
  display: grid;
  grid-template-columns: 200px auto;
}

.list-title {
  color: var(--line-color);
  width: 150px;
  font-size: 16px;
  font-weight: 400;
  margin: 40px 0 20px 30px ;
}

.list-title-box { margin-bottom: 12px; }

.quick-cats{
  margin-left: 230px;
  margin-top: 10px;
  display:flex; 
  gap:8px; 
  align-items:center;
}

.quick-cats .qbtn{
  width:28px; height:28px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line-color);
  border-radius:6px;
  background:transparent;
  color:#fff;                /* 아이콘 색 */
  text-decoration:none;
}

.quick-cats .qbtn svg{ width:18px; height:18px; display:block; }

.quick-cats .qbtn:hover{
  color: var(--font-color-hightright);
  border-color: var(--font-color-hightright);
}

.quick-cats .qbtn.active{
  background: var(--font-color-hightright);
  border-color: var(--font-color-hightright);
  color:#000;
}

.archives { color: goldenrod;}

.pagination{
  display:flex; 
  align-items:center; 
  justify-content:center;
  gap:2px; 
  margin:0px 10px 10px 0px;
  font-size:24px;
  width: 100%;
}

.pagination .pages{
  display:flex; 
  gap:2px; 
  list-style:none; 
  margin: 0px; 
  padding:0;
  font-size:16px;
}

.pagination a{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  min-width:5px; height:34px; 
  padding:15px 5px;
  text-decoration:none;
  color: var(--line-color);
}

.page.prev, .page.next { 
  padding : 0;
  width: 4px;
  color: #999;
}

.pagination a:hover{
  border-color:var(--font-color-hightright);
  color:var(--font-color-hightright);
}

.pagination .num.selected{           /* 현재 페이지(치환자로 들어오는 클래스) */
  background:var(--font-color-hightright);
  border-color:var(--font-color-hightright);
  color:#000;
  font-weight:700;
}

.pagination .prev, .pagination .next{ 
  padding:0 12px;
  
}

/* 글 본문 - 글 컨테이너 */
/* 글 보기 섹션이 있을 때만 스크롤 */
#postView{
  height: 100%;          /* 오른쪽 칸 세로 꽉 채우기 */
  min-height: 0;
  padding-right: 20px;
  overflow: auto;        /* ← 이 섹션에서만 스크롤 발생 */
  display: flex;         /* 내용 카드가 길어도 안정적으로 보이게 */
  flex-direction: column;
}

/* ───────── 상단 바(제목/날짜) ───────── */
.postbar{
  color: var(--line-color);
  position:relative;
  display:grid;
  grid-template-rows: 1fr auto;  /* 좌: 제목/카테고리, 우: 날짜 */
  align-items:center;
  column-gap:12px;

  padding-top:20px;
  margin-bottom: 10px;
  background: rgba(0,0,0,.55);
  border-bottom:2px solid var(--line-color);
}

/* 좌측: 카테고리 + 제목 */
.post-cat{
  color: var(--font-color-hightright);
  display:inline-block;
  margin-right:10px;
  padding:2px 6px 10px;
  font-size:12px;
  text-decoration:none;
  border-radius:5px;
  vertical-align:middle;
}

.post-title{
  display:inline-block;
  margin:0;
  padding-left: 10px;
  font-size:16px;       /* 샘플처럼 크게 말고 얇게 */
  line-height:1.25;
  vertical-align:middle;
}

/* 우측: 날짜 */
.post-date{
  padding-left: 380px;
  font-size:13px;
  opacity:.85;
  white-space:nowrap;
  letter-spacing: 0.01em;
}

/* ───────── 본문 박스(안쪽 내용) ───────── */
.postframe{
  position:relative;
  padding:10px;
  background: rgba(0,0,0,.45);
  border-radius:6px;
}

/* 본문 안 기본 요소 정리 */
.postframe p{ margin:8px 0; line-height:1.7; }
.postframe img, .postframe video{
  max-width:100%;
  height:auto;
  display:block;
  margin:8px auto;
}
.postframe table{ width:100%; border-collapse:collapse; }
.postframe pre{ overflow:auto; background:rgba(255,255,255,.06); padding:10px; border-radius:6px; }

/* 커스텀 스크롤바(오른쪽 칸) - 선택 */
#postView::-webkit-scrollbar{  width:7px; }
#postView::-webkit-scrollbar-track{ background:rgba(255,255,255,.06); }
#postView::-webkit-scrollbar-thumb{ background:var(--line-color); border-radius:6px; }

/* 동영상 */
/* --- 영상 공통 리셋 --- */
.postframe iframe,
.postframe video,
.postframe embed,
.postframe object{
  display:block;
  max-width:100%;
  width:100% !important;      /* 가로는 컨테이너에 맞춤 */
  height:auto;                /* 비율 유지 */
  border:0;
  transform:none !important;  /* 전역 변형 무력화 */
  filter:none !important;
  mix-blend-mode:normal !important;
  pointer-events:auto;
}

/* 티스토리/새에디터 영상 블록 래퍼들 */
.postframe figure[data-ke-type="video"],
.postframe .video_tistory,
.postframe .txc-media,
.postframe .video_wrap,
.postframe .kakao-video-player{
  position:relative !important;
  width:100% !important;
  max-width:100%;
  margin:16px 0;
}

/* 근래 브라우저: aspect-ratio로 높이 계산(16:9) */
.postframe figure[data-ke-type="video"] iframe,
.postframe .video_tistory iframe,
.postframe .txc-media iframe,
.postframe .video_wrap iframe,
.postframe video{
  aspect-ratio:16/9;
  object-fit:contain; /* 컨트롤/로고 안 잘리게 */
}

/* 숫자 점프 방지(선택) */
.postframe figcaption{ text-align:center; }


/*-----------보호글-----------*/
#ProtectpostView{
  height: 100%;          /* 오른쪽 칸 세로 꽉 채우기 */
  min-height: 0;
  padding-right: 20px;
  overflow: auto;        /* ← 이 섹션에서만 스크롤 발생 */
  display: flex;         /* 내용 카드가 길어도 안정적으로 보이게 */
  flex-direction: column;
}

.protected-card {
  color: var(--line-color);
  background-color: rgba(0, 0, 0, 0.522);
  padding: 20px;
}

/* 라벨(Enter Password:)을 확실히 가운데로 */
#ProtectpostView .protect-body label,
#ProtectpostView .protect-body p {  /* 어떤 스킨은 p로 출력됨 */

  width:100%;
  text-align:center;
  margin: 70px 0 8px;
}

/* 보호글 Pw 박스: 가운데 정렬 */
#ProtectpostView .pwbox{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:20px 0 20px 75px;
}

/* 인풋 */
#ProtectpostView .pwbox .password,
#ProtectpostView .pwbox input[type="password"]{
  width:min(150px, 20vw);
  height:30px;
  padding:0 px 0 3px;
  background:rgba(255,255,255,0.05);
  border:2px solid var(--line-color);
  border-radius:5px;
  color:#eee;
  outline:none;
  font-size:12px;
  letter-spacing:0.5px;
  transition:background .2s, border-color .2s, box-shadow .2s;
}
#ProtectpostView .pwbox .password::placeholder{
  color:#bdbdbd; opacity:.7;
}

/* 버튼 */
#ProtectpostView .pwbox button{
  height:30px;
  padding:0 10px 0 10px;
  border:2px solid var(--line-color);
  color:#0b0b0b;
  border-radius:10px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:filter .15s, transform .05s, box-shadow .15s;
}

#ProtectpostView .pwbox button:hover{
  background-color: seagreen;
  border-color: seagreen;
}

/*--------------------*/

/* 맨 아래 바 */
.bottombar {
  grid-column: 1 / -1;
  border-top: var(--line-color) solid 2px;

  color: var(--line-color);
  text-align: right;
  font-weight: 700;
  font-size: 20px;
  padding-top: 5px; padding-right: 10px;
}

/* 오른쪽 카테고리 탭 */

.category { /* 오른쪽 탭 */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding-top: 10px;
}

.category-tab {
  display:flex; 
  width: 55px; height: 45px;
  background-color: transparent;
  border: var(--line-color) solid 3px;
  border-left: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  
  align-items: center;
  justify-content: center;
}

.category-tab svg {
  padding-top: 2px;
  width: 24px;
  height: 24px;
  color: #fff;
}

.category-tab:hover svg {
  color: var(--font-color-hightright); /* hover 시 색상 바뀜 */
}

#tab-ss svg {
  margin-top: -5px;
  width: 26px;
  height: 26px;
}

.category .category-tab.active {
  background: goldenrod;
}

/* svg 색도 함께 바뀌도록 더 구체적으로 덮어쓰기 */
.category .category-tab.active svg{
  color: #000;              /* 이 줄이 .category-tab svg 를 이김 */
}


