* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    background: #fff8e1;
    min-height: 100vh;
    color: #4a4a4a;
    position: relative;
    overflow-x: hidden;
}

/* Modern Animated Background - Fluid Gradient Mesh */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 50%, #ffcc80 100%);
}

.dots-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Fluid gradient blobs */
.dots-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 183, 77, 0.4), rgba(255, 152, 0, 0.2), transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -10%;
    left: -10%;
    animation: morphBlob1 20s ease-in-out infinite;
    filter: blur(60px);
}

.dots-container::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.35), rgba(255, 183, 77, 0.2), transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -10%;
    right: -10%;
    animation: morphBlob2 25s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes morphBlob1 {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) scale(1);
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: translate(50px, 50px) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        transform: translate(30px, -30px) scale(0.9);
    }
    75% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
        transform: translate(-30px, 30px) scale(1.05);
    }
}

@keyframes morphBlob2 {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) scale(1);
    }
    33% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        transform: translate(-40px, 40px) scale(1.15);
    }
    66% {
        border-radius: 70% 30% 50% 50% / 70% 50% 50% 30%;
        transform: translate(40px, -40px) scale(0.85);
    }
}

/* Additional floating gradient orbs */
.animated-background::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(255, 183, 77, 0.25), transparent 60%);
    border-radius: 50%;
    top: 20%;
    right: 15%;
    animation: floatOrb1 18s ease-in-out infinite;
    filter: blur(50px);
}

.animated-background::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(255, 152, 0, 0.3), transparent 65%);
    border-radius: 50%;
    bottom: 25%;
    left: 20%;
    animation: floatOrb2 22s ease-in-out infinite;
    filter: blur(55px);
}

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(80px, -60px) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-70px, 70px) scale(1.2);
        opacity: 0.7;
    }
}

/* Subtle grid overlay for depth */
.animated-background {
    background-image: 
        linear-gradient(rgba(255, 183, 77, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 183, 77, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(255, 183, 77, 0.3);
    position: relative;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pin {
    font-size: 2.2rem;
    animation: pinBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(255, 152, 0, 0.4));
    position: relative;
    display: inline-block;
    color: #ff9800;
    line-height: 1;
}

.logo-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pinPulse 2.5s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    50% {
        transform: translateY(-6px) rotate(-5deg);
    }
    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

@keyframes pinPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}


.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.nav-link:hover {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: #ff9800;
    font-size: 0.95rem;
}

/* 버튼 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 183, 77, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 183, 77, 0.5);
}

.btn-admin {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.btn-admin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* 메인 컨텐츠 */
.main {
    padding: 2.5rem 0;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 홈 페이지 */
.welcome-section {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.welcome-section h2 {
    font-size: 0.56rem;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.welcome-section p {
    font-size: 0.26rem;
    color: #6b7280;
    font-weight: 400;
}

/* 페이지 헤더 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.8rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.15);
    border: 2px solid rgba(255, 183, 77, 0.2);
}

.page-header h2 {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
}

/* 게시글 컨테이너 - 디씨인사이드 스타일 */
.posts-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.post-card {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card:hover {
    background: #fafafa;
    transform: none;
    box-shadow: none;
}

.post-card.featured {
    background: #fff9e6;
    border-left: 3px solid #ff9800;
}

.post-card.featured:hover {
    background: #fff5d6;
}

.post-card.featured::before {
    content: "🔥";
    display: inline-block;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* 디씨인사이드 스타일 레이아웃 */
.post-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    gap: 15px;
}

.post-title-col {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.post-title:hover {
    text-decoration: underline;
    color: #ff9800;
}

.post-author-col {
    width: 100px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-date-col {
    width: 100px;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.post-views-col {
    width: 60px;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.post-likes-col {
    width: 60px;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.post-comments-col {
    width: 70px;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.post-location-col {
    width: 120px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 게시글 헤더 (디씨인사이드 스타일) */
.posts-header {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.posts-header .post-title-col {
    flex: 1;
}

.posts-header .post-author-col,
.posts-header .post-date-col,
.posts-header .post-views-col,
.posts-header .post-likes-col,
.posts-header .post-comments-col,
.posts-header .post-location-col {
    text-align: center;
}

/* 기존 스타일 (상세보기용) */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.post-content {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.post-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(255, 183, 77, 0.2);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 183, 77, 0.2);
}

.post-stats {
    display: flex;
    gap: 1.2rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* 갤러리 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid rgba(255, 183, 77, 0.2);
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 183, 77, 0.3);
}

.gallery-card h3 {
    font-size: 1.6rem;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.gallery-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-status.pending {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.gallery-status.approved {
    background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
    color: #333;
}

/* 모달 - 귀여운 디자인 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 183, 77, 0.3);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
    padding: 2.5rem;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(255, 183, 77, 0.4);
    border: 3px solid rgba(255, 183, 77, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content.large {
    max-width: 900px;
    flex-shrink: 0;
}

/* Modal AdSense - Side Ads */
.modal-ad {
    width: 160px;
    min-width: 160px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-ad-left {
    order: 1;
}

.modal-ad-right {
    order: 3;
}

.modal-content.large {
    order: 2;
}

.modal-ad ins {
    width: 160px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1400px) {
    .modal-ad {
        display: none;
    }
    
    .modal.active {
        padding: 2rem 1rem;
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #ff9800;
    cursor: pointer;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 183, 77, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close:hover {
    background: rgba(255, 183, 77, 0.4);
    transform: rotate(90deg) scale(1.1);
    color: #f57c00;
}

/* 폼 */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 183, 77, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255, 183, 77, 0.1);
    transform: scale(1.01);
}

/* Kakao Map Styles */
#locationMap {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 2px solid rgba(255, 183, 77, 0.3);
    z-index: 1;
    overflow: hidden;
}

#locationMap > div {
    border-radius: 10px;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.image-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(255, 183, 77, 0.3);
    transition: all 0.3s;
}

.image-preview img:hover {
    transform: scale(1.05);
    border-color: #ff9800;
}

/* 게시글 상세보기 */
.post-detail {
    padding: 1rem 0;
}

.post-detail-wrapper {
    width: 100%;
}

.post-detail-main {
    width: 100%;
}

.post-detail-images-inline {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.post-detail-images-inline img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.2);
    border: 2px solid rgba(255, 183, 77, 0.3);
}

.post-detail-modal {
    position: relative;
}

/* Ensure modal content doesn't overlap with arrows */
.modal-content.large {
    margin-right: 0;
}

@media (max-width: 1200px) {
    .modal-content.large {
        margin-right: 0;
    }
    
    .modal-scroll-nav-external {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .modal-scroll-nav-external {
        bottom: 20px;
        right: 20px;
    }
    
    .modal-scroll-nav-external .scroll-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

.post-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 183, 77, 0.2);
}

.post-detail-title {
    font-size: 2.2rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-detail-meta {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-detail-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.post-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-detail-images img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.2);
    border: 2px solid rgba(255, 183, 77, 0.2);
}

.post-detail-video {
    margin: 2rem 0;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-link {
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.video-link a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
}

.video-link a:hover {
    text-decoration: underline;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 183, 77, 0.2);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid rgba(255, 183, 77, 0.2);
    border-bottom: 2px solid rgba(255, 183, 77, 0.2);
}

.post-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.post-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.post-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.post-nav-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.post-nav-arrow {
    font-size: 1.2rem;
    font-weight: 700;
}

.post-nav-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Comments Section - 디씨인사이드 스타일 */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 183, 77, 0.2);
    width: 100%;
}

.comments-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.comment-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    width: 100%;
}

.comment-form .form-group {
    margin-bottom: 0.8rem;
}

.comment-form textarea {
    font-family: inherit;
    font-size: 0.9rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: background-color 0.2s;
    width: 100%;
}

.comment-item:hover {
    background: #fafafa;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-ip {
    color: #999;
    font-size: 0.8rem;
}

.comment-date {
    color: #999;
    margin-left: auto;
}

.comment-content {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.comment-like-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-like-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ff9800;
    color: #ff9800;
}

.comment-like-btn.liked,
.comment-like-btn:disabled {
    background: #fff5e6;
    border-color: #ff9800;
    color: #ff9800;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hot Posts Section */
.hot-posts-section {
    margin-top: 2rem;
}

.hot-posts-section h2 {
    color: #4a4a4a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hot Post Card - Image on Right */
.hot-post-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.hot-post-card .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.hot-post-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.hot-post-left {
    flex: 1;
    min-width: 0;
}

.hot-post-images {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
}

.hot-post-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 183, 77, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content-preview {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #ff9800;
}

.hot-post-best-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.best-comment-item {
    background: #f5f5f5;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 2px solid #ff9800;
}

.best-comment-item:last-child {
    margin-bottom: 0;
}

.best-comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 0.3rem;
}

.best-comment-content {
    font-size: 0.85rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.best-comment-likes {
    font-size: 0.8rem;
    color: #999;
}

/* Posts Container with Scroll Navigation */
.posts-container-wrapper {
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.posts-container-wrapper::-webkit-scrollbar {
    width: 8px;
}

.posts-container-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.posts-container-wrapper::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 10px;
}

.posts-container-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ffb74d;
}

.post-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Scroll Navigation Arrows */
.scroll-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-nav-btn {
    background: #ff9800;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-nav-btn:hover {
    background: #ffb74d;
    transform: scale(1.1);
}

.scroll-nav-btn:active {
    transform: scale(0.95);
}

.scroll-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.scroll-nav-top {
    top: 10px;
}

.scroll-nav-bottom {
    bottom: 10px;
}

@media (max-width: 768px) {
    .hot-post-content {
        flex-direction: column;
    }
    
    .hot-post-images {
        width: 200px;
        height: 200px;
        align-self: flex-end;
    }
    
    .hot-post-images img {
        width: 200px;
        height: 200px;
        border-radius: 8px;
    }
    
    .posts-container-wrapper {
        max-height: 70vh;
    }
    
    .post-detail-images-inline {
        flex-direction: column;
    }
    
    .post-detail-images-inline img {
        width: 100%;
        max-height: 300px;
    }
    
    
    .video-wrapper {
        padding-bottom: 56.25%;
    }
    
    .scroll-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Google AdSense Container */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 183, 77, 0.2);
}

.ad-inline {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.ad-bottom {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-top: 2px solid rgba(255, 183, 77, 0.2);
    margin-top: 2rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo-pin {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        justify-content: center;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.8rem;
        border-radius: 25px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    /* 디씨인사이드 스타일 반응형 */
    .posts-header {
        display: none; /* 모바일에서는 헤더 숨김 */
    }
    
    .post-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .post-title-col,
    .post-author-col,
    .post-date-col,
    .post-views-col,
    .post-likes-col,
    .post-comments-col,
    .post-location-col {
        width: 100%;
        text-align: left;
    }
    
    .post-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .post-author-col::before {
        content: "Author: ";
        font-weight: 600;
        color: #999;
    }
    
    .post-date-col::before {
        content: "Date: ";
        font-weight: 600;
        color: #999;
    }
    
    .post-views-col::before {
        content: "Views: ";
        font-weight: 600;
        color: #999;
    }
    
    .post-likes-col::before {
        content: "Likes: ";
        font-weight: 600;
        color: #999;
    }
    
    .post-comments-col::before {
        content: "Comments: ";
        font-weight: 600;
        color: #999;
    }
    
    .post-location-col::before {
        content: "Location: ";
        font-weight: 600;
        color: #999;
    }
    
    .ad-container {
        margin: 1rem 0;
        padding: 0.8rem;
    }
}

