@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary: #FF7E36; /* Daangn Orange */
    --primary-hover: #E66A20;
    --secondary: #0047FF;
    --bg: #FFFFFF;
    --bg-alt: #F5F6F8;
    --card-bg: #FFFFFF;
    --border: rgba(0, 0, 0, 0.06);
    --text-main: #212124;
    --text-dim: #868B94;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 프리미엄 노이즈 텍스처 (라이트 모드 최적화) */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 네비게이션 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-location {
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.nav-location:hover {
    background: var(--bg-alt);
}

.nav-location .arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    color: var(--text-dim);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

/* 히어로 섹션 */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #FFF4EE 0%, #FFFFFF 100%);
    padding-top: 72px;
}

.hero-badge {
    background: #FFF0E6;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: #FFF0E6;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: #FFE4D3;
}

.btn-accent {
    background: var(--secondary);
    color: white;
}

.btn-accent:hover {
    background: #5D7A1E;
}

.btn.disabled {
    background: #F0F0F2;
    color: #B0B0B5;
    border: none;
    cursor: not-allowed;
    transform: none !important;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.status-msg {
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim);
    padding: 8px 12px;
    background: #F8F9FA;
    border-radius: 8px;
    text-align: center;
}

.status-msg.brand-joined {
    color: #2D5A27;
    background: #E6EFE5;
}

.w-100 { width: 100%; }
.mt-20 { margin-top: 20px; }

/* 프로젝트 카드 */
.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-dim);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.project-tag {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.project-info .location {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #F0F0F2;
    border-radius: 100px;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
}

.funding-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.funding-stats span strong {
    color: var(--primary);
}

/* AI 슬라이더 */
.ai-showcase {
    background-color: var(--bg-alt);
    border-radius: 40px;
    padding: 80px 40px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 40px auto;
    border-radius: 24px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.after-img {
    width: 50%;
    border-right: 4px solid var(--primary);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 50%;
    width: 48px; height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 126, 54, 0.4);
    pointer-events: none;
}

/* 커뮤니티 섹션 스타일 */
.community-section {
    background-color: #FFFFFF;
}

.community-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-form {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.post-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #EAEBED;
    border-radius: 12px;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.post-form textarea:focus {
    border-color: var(--primary);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.2s;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.user-loc {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 600;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 4px;
}

.post-date {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.post-content {
    font-size: 1rem;
    color: #424245;
    line-height: 1.6;
}

/* 동네 인증 페이지 스타일 (공통 사용) */
.pulse-container {
    position: relative;
    width: 24px; height: 24px;
}

.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite ease-out;
}

.pulse-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* AI 비전 포스트 전용 스타일 */
.ai-vision-post {
    border-left: 4px solid var(--primary);
}

.vision-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
}

.vision-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    background: #F8F9FA;
    padding: 15px;
    border-radius: 16px;
}

.v-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-side span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.v-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.v-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 900;
}

/* 게시글 액션 버튼 */
.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.report-btn:hover {
    color: #ff4d4f;
}

/* 댓글 섹션 */
.comment-section {
    background: #F9F9FB;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-item {
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-user {
    font-weight: 800;
    margin-right: 8px;
    color: var(--text-main);
}

.comment-text {
    color: #424245;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 8px;
}

.comment-input-group {
    display: flex;
    gap: 10px;
}

.comment-input-group input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #EAEBED;
    outline: none;
    font-family: inherit;
}

.comment-input-group button {
    padding: 0 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* 블라인드 게시글 */
.blind-post {
    background: #FFF1F0;
    border: 1px solid #FFA39E;
    color: #CF1322;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.post-image-content {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid var(--border);
}

/* 푸터 */
footer {
    padding: 60px 20px;
    background: #F9F9FB;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    nav { padding: 0 20px; }
}
