/* 기본 스타일 리셋 */ body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; list-style: none; } body { font-family: Arial, sans-serif; background-color: #e6ecf0; color: #14171a; width: 100%; box-sizing: border-box; overflow-x: hidden; margin: 0; padding: 0; } .wrapper { display: flex; justify-content: flex-start; width: 100%; min-height: 100vh; margin: 0; padding: 0; } a { text-decoration: none; color: #1da1f2; } a:hover { text-decoration: underline; } .highlight { color: #1da1f2; margin-right: 5px; } .highlight:hover { text-decoration: underline; } .divider { border-bottom: 1px solid #e1e8ed; margin: 20px 0; } /* 전체 레이아웃 */ .container { display: flex; flex-wrap: wrap; grid-template-columns: 300px 1fr 350px; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0; justify-content: center; } /* 왼쪽 사이드바 */ .sidebar { width: 300px; height: 100vh; position: fixed; top: 0; left: max(0px, calc((100% - 700px) / 2 - 330px)); background-color: transparent; padding: 20px; display: flex; flex-direction: column; align-items: center; z-index: 100; overflow: hidden; } .sidebar h1 { font-size: 28px; margin-bottom: 20px; } .sidebar ul li { position: relative; margin: 10px 0; padding: 8px; font-size: 18px; cursor: pointer; border-radius: 50px; transition: background-color 0.3s ease; overflow: hidden; } /* 호버 */ .sidebar ul li:hover { background-color: #d1d8dd; cursor: pointer; } .logo { display: flex; align-items: center; height: 40px; } .logo img { width: 40px; height: auto; } .post-btn { background-color: #1da1f2; color: #fff; padding: 14px 10px; border-radius: 30px; border: none; font-size: 16px; cursor: pointer; width: 200px; margin-top: 20px; } /* 상단 바 */ .profile-top-bar { display: flex; align-items: center; gap: 30px; padding: 10px 20px; border-bottom: 1px solid #ddd; } .back-arrow { font-size: 20px; cursor: pointer; font-weight: bold; } .profile-title h2 { font-size: 18px; margin: 0; display: flex; align-items: center; } .title-icon { height: 18px; width: auto; margin-left: 10px; transform: translateY(2px); } .profile-title p { font-size: 14px; color: #657786; } /* 메인 프로필 */ .profile-container { flex: 1; background-color: #fff; margin: 10px; margin-top: 0; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); margin-left: calc(200px + 30px); margin-right: calc(260px + 50px); max-width: none; background-color: #ffffff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); border-radius: 8px; box-sizing: border-box; } .profile-header { position: relative; text-align: left; } .banner img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px 8px 0 0; } .profile-pic { position: absolute; bottom: 180px; left: 20px; width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; background-color: #fff; object-fit: cover; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .profile-details { padding: 20px; padding-top: 70px; } .profile-details h2 { font-size: 22px; display: flex; align-items: center; } .profile-details p.username { color: #657786; font-size: 15px; } .verified { color: #1da1f2; margin-left: 5px; } .description { margin-top: 14px; font-size: 15px; } .description2 { margin-top: 10px; font-size: 14px; color: #657786; } .profile-stats { display: flex; gap: 15px; font-size: 14px; color: #657786; margin-top: 15px; } .profile-stats strong { color: #000000; font-size: 15px; } .profile-tabs { width: 100%; display: flex; position: relative; justify-content: center; } .profile-tabs ul { display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #ddd; margin: 0; width: 100%; gap: 25px; color: #657786; position: relative; } .profile-tabs li { list-style: none; padding: 10px 15px; cursor: pointer; font-size: 16px; white-space: nowrap; } .profile-tabs .active { font-weight: bold; color: #000000; } .profile-tabs .highlight-bar { position: absolute; bottom: 0; left: 0; height: 4px; border-radius: 50px; background-color: #1da1f2; width: 0; } /* 게시물 섹션 전체 */ .posts { padding: 0; margin: 0; } .posts { padding: 0; margin: 0; } /* 게시물 전체 */ .post { display: flex; align-items: flex-start; gap: 13px; margin: 0; width: 100%; box-sizing: border-box; padding: 20px; background-color: #ffffff; transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out; } /* 호버 효과 */ .post:hover { background-color: #f2f2f2; } /* 게시물 여백 추가 부모 컨테이너 */ .posts .post:not(:last-child) { border-bottom: 1px solid #ddd; } .post.fade-in { opacity: 1; transform: translateY(0); } /* 프로필 이미지 */ .profile-image { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; } /* 게시물 내용 전체 (헤더 + 내용 + 하단 통계) */ .post-content-wrapper { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; } /* 게시물 헤더 */ .post-header { display: flex; align-items: center; gap: 10px; } .header-text p { margin: 0; font-size: 14px; color: #657786; } .header-text strong { font-size: 16px; color: #000000; display: inline-flex; align-items: center; } .inline-icon { height: 16px; width: auto; margin-left: 6px; margin-right: 4px; vertical-align: middle; } /* 게시물 내용 */ .post-content { font-size: 15px; color: #14171a; margin-top: -8px; line-height: 1.4; } .post-content a { color: #1da1f2; text-decoration: none; font-size: 16px; margin-top: 10px; margin-bottom: 10px; display: block; } .post-content a:hover { text-decoration: underline; } .post-content img { width: 100%; border-radius: 8px; margin-top: 10px; } /* 게시물 하단 통계 */ .post-footer { padding-top: 6px; } .post-stats { display: flex; justify-content: space-between; font-size: 14px; color: #657786; align-items: center; gap: 70px; } .post-stats span { display: flex; align-items: center; gap: 4px; cursor: pointer; flex: 1; } .post-stats .stat { cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; } /* 클릭 상태별 색상 */ .stat-comments.clicked { color: #1da1f2; /* 댓글 */ } .stat-retweets.clicked { color: #17bf63; /* 리트윗 */ } .stat-likes.clicked { color: #e0245e; /* 좋아요 */ } .stat-views.clicked { color: #ffad1f; /* 조회수 */ } /* 애니메이션 */ .stat-comments .number.animate:after { content: "💬"; position: absolute; top: -20px; left: 0; animation: explode-blue 0.6s ease forwards; } .stat-retweets .number.animate:after { content: "🔁"; position: absolute; top: -20px; left: 0; animation: explode-green 0.6s ease forwards; } .stat-likes .number.animate:after { content: "❤️"; position: absolute; top: -20px; left: 0; animation: explode-pink 0.6s ease forwards; } .stat-views .number.animate:after { content: "📊"; position: absolute; top: -20px; left: 0; animation: explode-yellow 0.6s ease forwards; } /* 애니메이션 키프레임 */ @keyframes explode-blue { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } } @keyframes explode-green { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } } @keyframes explode-pink { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } } @keyframes explode-yellow { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } } /* 댓글 */ .stat-comments:hover { transform: scale(1.1); color: #1da1f2; } /* 리트윗 */ .stat-retweets:hover { transform: scale(1.1); color: #17bf63; } /* 좋아요 */ .stat-likes:hover { transform: scale(1.1); color: #e0245e; } /* 조회수 */ .stat-views:hover { transform: scale(1.1); color: #ffad1f; } /* 댓글 애니메이션 */ .stat-comments .number.animate:after { content: "💬"; position: absolute; top: -20px; left: 0; animation: explode-comments 0.6s ease forwards; } @keyframes explode-comments { 0% { transform: scale(1); opacity: 1; color: #1da1f2; } 100% { transform: scale(2); opacity: 0; color: #1da1f2; } } /* 리트윗 애니메이션 */ .stat-retweets .number.animate:after { content: "🔁"; position: absolute; top: -20px; left: 0; animation: explode-retweets 0.6s ease forwards; } @keyframes explode-retweets { 0% { transform: scale(1); opacity: 1; color: #17bf63; } 100% { transform: scale(2); opacity: 0; color: #17bf63; } } /* 좋아요 애니메이션 */ .stat-likes .number.animate:after { content: "❤️"; position: absolute; top: -20px; left: 0; animation: explode-likes 0.6s ease forwards; } @keyframes explode-likes { 0% { transform: scale(1); opacity: 1; color: #e0245e; } 100% { transform: scale(2); opacity: 0; color: #e0245e; } } /* 조회수 애니메이션 */ .stat-views .number.animate:after { content: "📊"; position: absolute; top: -20px; left: 0; animation: explode-views 0.6s ease forwards; } @keyframes explode-views { 0% { transform: scale(1); opacity: 1; color: #ffad1f; } 100% { transform: scale(2); opacity: 0; color: #ffad1f; } } /* 기본 콘텐츠 */ .tab-content { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; } /* 활성화 콘텐츠 */ .tab-content.active { opacity: 1; visibility: visible; transform: translateY(0); } /* 기본 게시글 콘텐츠 활성화 */ #posts { opacity: 1; visibility: visible; transform: translateY(0); } /* 미디어 그리드 */ .media-grid { display: grid; grid-template-columns: repeat(3, 1fr); /* 가로 3개 정렬 */ padding: 10px; } /* 미디어 이미지 */ .media-grid img { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; cursor: pointer; border-radius: 0; transition: transform 0.2s ease-in-out; } /* 호버 시 확대 효과 */ .media-grid img:hover { transform: scale(1.05); } /* 기본 숨김 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 1000; } /* 활성화될 때 보이게 */ .modal.active { display: flex; } /* 모달 컨텐츠 배치 */ .modal-content { display: flex; width: 100%; height: 100%; } /* 왼쪽: 검은 배경 + 이미지 */ .modal-left { flex: 75%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); } /* 이미지 래퍼 */ .image-wrapper { max-width: 90%; max-height: 90%; display: flex; justify-content: center; align-items: center; } /* 확대된 이미지 */ .modal-left img { max-width: 100%; max-height: 100%; object-fit: contain; } /* 오른쪽: 게시물 내용 */ .modal-right { flex: 25%; width: 90%; height: 100%; padding: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; max-width: 450px; min-width: 300px; } /* 통계(댓글, 리트윗, 좋아요, 조회수) 간격 */ .modal-right .post .post-stats { display: flex; gap: 15px; } .modal-right .post { max-width: 100%; margin: 0; padding: 0; overflow: hidden; height: auto; display: flex; } .modal-right .stat-views .number { display: none; } /* X 버튼 왼쪽 상단 배치 */ .modal-close { position: absolute; top: 15px; left: 25px; font-size: 30px; color: white; cursor: pointer; transition: color 0.3s ease, transform 0.2s ease; z-index: 10; } .modal-close::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 35px; /* 원의 너비 */ height: 35px; /* 원의 높이 */ background: rgba(0, 0, 0, 0.6); border-radius: 50%; z-index: -1; } /* X 버튼 호버 효과 */ .modal-close:hover { color: #ccc; } /* 배경 클릭 시 닫기 */ .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } body.modal-open { overflow: hidden !important; height: 100%; } #imageModal .post:hover { background-color: transparent; transition: none; } /* 오른쪽 사이드바 */ .widgets { width: 25%; padding: 20px; position: fixed; top: 0; right: max(0px, calc((100% - 700px) / 2 - 330px)); height: 100vh; width: 350px; max-width: 350px; background-color: transparent; padding: 20px; } .search-box { width: 100%; box-sizing: border-box; margin-bottom: 10px; } .search-box input { width: 100%; padding: 12px 10px; border-radius: 20px; border: 1px solid #ccc; box-sizing: border-box; } /* 자동완성 리스트 */ .autocomplete-list { list-style: none; margin: 0; padding: 0; position: absolute; background-color: #fff; border-radius: 4px; width: calc(100% - 20px); max-height: 200px; overflow-y: auto; z-index: 1000; } .autocomplete-list li { padding: 10px; cursor: pointer; height: 22px; line-height: 40px; } .autocomplete-list li:hover { background-color: #f5f8fa; } .suggestions { position: absolute; background-color: white; border: 1px solid #ddd; max-height: 150px; overflow-y: auto; } .suggestion { padding: 10px; cursor: pointer; } .suggestion:hover { background-color: #f0f0f0; } .box { background-color: #fff; border-radius: 8px; padding: 10px; margin-top: 20px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .follow-suggestions h3 { font-size: 20px; margin-bottom: 25px; } .follow-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; } .profile-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; } .text-container { display: flex; flex-direction: column; gap: 3px; flex: 1; } .text-container p { margin: 0; font-size: 16px; } .text-container p.username { color: #657786; font-size: 14px; } .description { color: #657786; font-size: 14px; } button { width: 80px; text-align: center; padding: 7px 0; background-color: #000; color: #fff; border: none; border-radius: 20px; cursor: pointer; font-size: 13px; flex-shrink: 0; } .additional-content h3 { font-size: 20px; margin-bottom: 25px; } .additional-content .content-item { margin-bottom: 15px; font-size: 16px; line-height: 1.5; } .additional-content p.username { color: #657786; font-size: 14px; } .additional-content .content-item strong { color: #14171a; font-weight: bold; } .additional-content p { margin: 0; color: #657786; } .more-link { display: block; text-align: left; font-size: 15px; color: #1da1f2; text-decoration: none; margin-top: 40px; margin-left: 10px; } /* 등록된 댓글 */ .comment { display: flex; align-items: flex-start; padding: 10px 15px; border-bottom: 1px solid #e1e8ed; gap: 10px; } .comment .profile-img { width: 40px; height: 40px; border-radius: 50%; } .comment-content { flex: 1; } .comment-header { font-size: 14px; color: #657786; } .comment-header .username { color: #000; } /* @username 스타일 */ .highlight-user { color: #657786; } .comment-header .time { margin-left: 5px; } .comment-text { font-size: 14px; color: #14171a; margin: 5px 0 0; } /* 호버 효과 */ .comment:hover { background-color: #f5f8fa; cursor: pointer; } /* 댓글 팝업 전체 배경 */ .popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; } /* 댓글 팝업 */ .popup-content { background: #fff; border-radius: 15px; padding: 15px; width: 500px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); position: relative; display: flex; flex-direction: column; gap: 15px; max-width: 90%; } /* 닫기 버튼 */ .close-btn { position: absolute; top: 10px; right: 15px; font-size: 20px; cursor: pointer; color: #657786; } .close-btn:hover { color: #000; } /* 팝업 게시글 상단 */ .popup-header { display: flex; gap: 10px; } .popup-header-text p { margin: 0; font-size: 14px; color: #657786; margin-bottom: 10px; } /* 댓글 스타일 */ .reply-info { display: flex; align-items: center; margin: 10px 0 15px; font-size: 14px; color: #657786; } .reply-info .mention { color: #1da1f2; font-weight: 500; } .reply-info .vertical-line { width: 2px; height: 40px; background-color: #ddd; margin-right: 30px; margin-left: 20px; } /* strong 태그 제외 텍스트 색상 */ .popup-header-text p:not(:has(strong)) { color: #14171a; } /* strong 제외 p 태그 텍스트 스타일 */ .popup-header-text p > :not(strong) { color: #14171a; } .popup-header-text strong { font-size: 15px; color: #14171a; } .popup-profile-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } /* 해시태그 스타일 */ .popup-post-text .highlight { color: #1da1f2; } /* 해시태그 스타일 (호버) */ .popup-post-text .highlight:hover { text-decoration: underline; } /* 기본 상태 링크 스타일 */ .popup-post-text a { color: #1da1f2; text-decoration: none; } /* 호버 시 스타일 */ .popup-post-text a:hover { text-decoration: underline; color: #1da1f2; } /* 일반 텍스트 기존 스타일 유지 */ .popup-post-text { color: inherit; font-size: 15px; line-height: 1.6; } /* 날짜 텍스트 스타일 */ .popup-header-text .date-text { color: #657786; font-size: 14px; } /* 댓글 입력창 */ .popup-reply { display: flex; gap: 10px; } #comment-input { width: 100%; height: 80px; border: none; outline: none; font-size: 14px; resize: none; padding: 10px; border-bottom: 1px solid #e1e8ed; } #comment-input::placeholder { color: #657786; } /* 하단 아이콘 및 버튼 */ .popup-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; } .popup-icons span { font-size: 18px; color: #1da1f2; margin-right: 15px; cursor: pointer; } .popup-icons span:hover { color: #1991da; } #submit-comment { background-color: #1da1f2; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; } #submit-comment:hover { background-color: #1991da; } /* 팝업 숨기기 */ .hidden { display: none; } /* 하단 네비게이션 바 */ .bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background-color: white; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); padding: 0; display: none; z-index: 10000; } /* 네비게이션 리스트 */ .bottom-nav ul { display: flex; justify-content: space-around; align-items: center; padding: 0; margin: 0; list-style: none; } /* 리스트 (li) */ .bottom-nav ul li { flex: 1; text-align: center; height: 50px; display: flex; align-items: center; justify-content: center; } /* 아이콘 */ .bottom-nav ul li a { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #333; text-decoration: none; width: 100%; height: 100%; transition: color 0.3s ease-in-out, background-color 0.2s ease-in-out; } /* 모든 아이콘 동일 크기 */ .bottom-nav ul li a span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; line-height: 30px; vertical-align: middle; } /* 아이콘 클릭 시 색상 변경 */ .bottom-nav ul li a:hover { color: #1da1f2; } /* 호버 */ .bottom-nav ul li:hover { background-color: rgba(0, 0, 0, 0.1); } /* 모바일 검색 결과 창 */ .mobile-sidebar { display: none; position: fixed; top: 0; right: -39px; width: 100vw; height: 100vh; background-color: white; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 9999; } #mobile-news { padding-bottom: 20px; } /* 사이드바 활성화 시 */ .mobile-sidebar.active { display: block; transform: translateX(0); } /* 모바일 트렌드 & 팔로우 스타일 유지 */ #mobile-news .content-item, #mobile-follow .follow-item { border-bottom: 1px solid #e1e8ed; padding: 15px 0; } /* 제목 스타일 유지 */ #mobile-news .content-item .username, #mobile-follow .follow-item .username { color: #657786; font-size: 14px; } #mobile-news .content-item strong, #mobile-follow .follow-item strong { font-size: 16px; font-weight: bold; color: #14171a; } /* 팔로우 버튼 스타일 */ #mobile-follow .follow-btn { margin-right: 30px; } /* 모바일 검색 리스트 호버 (왼쪽 여백 없이 적용) */ #mobile-news .content-item:hover, #mobile-follow .follow-item:hover { background-color: rgba(0, 0, 0, 0.05); /* 연한 회색 */ transition: background-color 0.2s ease-in-out; margin-left: -20px; /* 왼쪽 여백 제거 */ padding-left: 20px; /* 기존 내부 여백 유지 */ } /* === 반응형 디자인 === */ /* 태블릿 가로 화면 (1359px) */ @media (max-width: 1359px) { .body { transform: scale(0.95); transform-origin: top left; overflow-x: hidden; } .container { grid-template-columns: 300px 1fr 350px; gap: 20px; max-width: 1500px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; } .sidebar { position: fixed !important; left: 0; width: 120px; padding: 10px; margin-left: -20px; } .logo { display: flex; justify-content: center; align-items: center; margin-bottom: 30px; width: 100%; } .sidebar ul { padding: 0; text-align: center; } .sidebar ul li { display: flex; flex-direction: column; align-items: center; margin: 13px 0; } .sidebar .text { display: none; } .sidebar .icon { font-size: 24px; color: #657786; } .widgets { right: 0px; width: 300px; position: fixed; padding-top: 20px; } .widgets p { font-size: 14px; } .description { font-size: 13px !important; } .widgets .follow-btn { width: 65px; } .profile-container { margin-left: 80px; margin-right: 320px; margin-top: 0; width: 100%; } .post { gap: 10px; } .post-content img { width: 100%; height: auto; } .post-stats { gap: 30px; } .post-btn { width: 60px; height: 60px; border-radius: 60px; font-size: 0; display: flex; justify-content: center; align-items: center; padding: 0; } .post-btn::before { content: ""; width: 27px; height: 27px; background-image: url("img/post.png"); background-size: contain; background-repeat: no-repeat; display: block; } .search-box input { width: 100%; } /* 모달 활성화 시 */ body.modal-open .container { transform: none !important; /* transform 속성 제거 */ } } /* 태블릿 세로 화면 (1024px 이하) */ @media (max-width: 1024px) { .body { margin: 0; padding: 0; } .wrapper { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; display: flex; justify-content: flex-start !important; overflow: hidden; } /* 모달 활성화 */ body.modal-open .container { transform: none !important; } .container { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; } .profile-container { margin-left: 100px !important; margin-right: 0 !important; max-width: 100% !important; width: 100% !important; border-radius: 0; transform-origin: top left; transform: scale(1.005); overflow-y: hidden; } .widgets { display: none !important; margin-left: -20px; } } /* 모바일 화면 (768px 이하) */ @media (max-width: 768px) { .body { overflow: hidden; } .wrapper { display: flex; justify-content: flex-start; padding-left: 0; margin-left: 0; width: 100%; overflow: hidden; } .sidebar { display: none; } .widgets { display: none; } .container { flex-direction: column; padding: 0 10px; } .profile-container { width: 100%; margin: 0 !important; border-radius: 0; max-width: 100%; transform-origin: top left; transform: scale(1.008); overflow-y: hidden; } .banner img { height: 200px; } .profile-pic { width: 80px; height: 80px; } .profile-details { padding-top: 50px; } .profile-tabs { font-size: 16px; } .profile-tabs ul { display: flex; justify-content: center; align-items: center; gap: 25px; font-size: clamp(14px, 2vw, 16px); border-bottom: 1px solid #ddd; letter-spacing: -0.5px; } .profile-tabs li { list-style: none; cursor: pointer; padding: 10px 15px; font-size: clamp(14px, 1.8vw, 16px); letter-spacing: -0.5px; } .post-footer { justify-content: space-around; } .search-box { display: none; } .box { padding: 15px; text-align: center; } .post { width: 100%; max-width: 100%; } .post-btn { width: 100%; } .modal-content { flex-direction: column; width: 100%; height: 100%; } .modal-left { flex: 1; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; } .modal-left img { max-width: 100%; max-height: 100%; object-fit: contain; } .modal-right { display: none; } .bottom-nav { display: block; } } @media (min-width: 769px) { .mobile-sidebar { display: none !important; /* 무조건 숨김 */ transform: none !important; } } @media (max-width: 445px) { .header-text p .date-text { display: block; margin-bottom: 2px; } } /* 초소형 모바일 (최대 499px) */ @media (max-width: 499px) { .body { font-size: clamp(12px, 1.5vw, 12px); overflow-x: hidden; } .banner img { height: 200px; } .profile-pic { width: 80px; height: 80px; } .profile-tabs ul { gap: 10px; } .profile-tabs li { font-size: 14px; overflow: hidden; } .profile-container { transform-origin: top left; transform: scale(1.015); overflow-y: hidden; } .post-content { font-size: 14px; } .post-stats { font-size: 13px; gap: 15px; } .post-stats span { font-size: 11px; line-height: 1.2; } .popup-header-text strong { font-size: 1em; display: block; margin-bottom: 5px; } .popup-header-text .date-text { font-size: 0.85em; } .popup-content { width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; padding: 20px; box-shadow: none; justify-content: flex-start; padding-top: 50px; position: relative; } .popup-content .close-btn { position: fixed; top: 15px; right: 15px; z-index: 99999; font-size: 20px; cursor: pointer; color: #657786; padding: 5px; border-radius: 50%; } #submit-comment { padding: 6px 12px; font-size: 14px; width: auto; height: auto; min-width: 80px; } .popup-icons { display: flex; gap: 1px; justify-content: space-between; } .comment-popup { transform: scale(0.6); } } /* 초소형 모바일 (최대 445px) */ @media (max-width: 445px) { .stat.stat-views .number { display: none; } .profile-tabs ul { gap: 1px; } .profile-tabs li { font-size: 13px; overflow: hidden; } .profile-container { transform-origin: top left; transform: scale(1.015); overflow-y: hidden; } .profile-pic { position: absolute; bottom: 185px; width: 70px; height: 70px; } .profile-details .description2 a { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; vertical-align: middle; } } /* 초소형 모바일 (최대 445px) */ @media (max-width: 445px) { .body { overflow-x: hidden; } } @media (max-width: 387px) { .profile-tabs ul { gap: 1px; } .profile-tabs li { font-size: 12px; overflow: hidden; } .profile-container { transform-origin: top left; transform: scale(1.015); overflow-y: hidden; } }