/* 기본 스타일 리셋 */ 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; } }