/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f4f3ed; /* Fallback */
    --bg-gradient: linear-gradient(135deg, #fefcf8 0%, #e6e3d8 100%); /* Subtle warm gradient */
    --text-color: #111111; /* Stark black for strong contrast */
    --accent-color: #d8c6ed; /* Pastel purple highlight from "SUBMIT" and "MORE" */
    --accent-hover: #c4ace8; /* Darker purple for hover states */
    --border-color: #e0ded5;
    --font-heading: 'Bebas Neue', 'Pretendard', sans-serif;
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all; /* 한글 단어 단위 줄바꿈으로 가독성 향상 */
}

.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px); /* 화면 크기에 따른 가변 여백 */
}

/* Typography Utilities */
.hidden {
    display: none !important;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.nav-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn:hover {
    background: rgba(216, 198, 237, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-btn:hover::after {
    width: 100%;
}

/* Main Layout Settings */
.split-container {
    display: flex;
    gap: 80px;
    align-items: center;
    margin: 80px 0;
}

.left-section {
    flex: 1.3;
}

.right-section {
    flex: 1;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.main-title {
    font-family: var(--font-body);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: inline-block;
}

.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1;
    width: fit-content;
    padding: 0 10px;
    mask-image: linear-gradient(to right, black, black); /* fixes some z-index clipping in some browsers */
}

.highlight-text::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    height: 40%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: height 0.3s ease;
}

.hero-section:hover .highlight-text::before {
    height: 80%;
}

.subtitle {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    font-weight: 400;
}

/* Input Section */
.input-section {
    width: 100%;
}

.input-wrapper {
    background: #e9e8e3;
    padding: 40px;
    position: relative;
}

/* New Large Rounded Style */
.input-wrapper.large-rounded {
    background: #ffffff; /* Contrast against gradient */
    border-radius: 40px; /* Very rounded corners as requested */
    padding: 50px;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); /* Soft brutalist shadow */
    border: 2px solid var(--border-color);
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #666;
}

textarea {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    resize: none; /* Disable manual resize to keep bubble shape intact */
    outline: none;
    line-height: 1.4;
}

textarea::placeholder {
    color: #ccc;
    font-weight: 400;
}

.action-wrapper-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.action-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 40px;
}

.submit-btn {
    background: var(--accent-color);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.action-center-btn {
    border-radius: 40px; /* match the rounded wrapper */
    padding: 20px 40px;
    font-size: 1.4rem;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.action-center-btn:hover {
    box-shadow: 12px 12px 0px rgba(0,0,0,0.1);
}

.submit-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0,0,0,0.1);
}

/* Result Section as an Inline Card (페이지 본문 내 인라인 카드) */
.result-section {
    position: relative; /* 고정 오버레이가 아닌 문서 흐름 안에 위치 */
    width: 100%;
    max-width: 700px;
    margin: 60px auto;
    z-index: 10;
    animation: cardPopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardPopIn {
    from { 
        opacity: 0; 
        transform: scale(0.85) translateY(40px); 
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-5px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.result-modal-container {
    width: 100%;
    background: #fff;
    border: 2px solid var(--border-color);
    padding: 50px 40px 40px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    position: relative;
    height: auto;
}


.close-result-x {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-result-x:hover {
    background: var(--text-color);
    color: #fff;
    transform: rotate(90deg);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
}

.date-stamp {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 0.1em;
}

.judgment-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.judgment-text p {
    margin-bottom: 15px;
}

/* Reset Button */
.reset-section {
    margin-top: 40px;
    text-align: center;
}

.reset-btn {
    background: transparent;
    border: 2px solid var(--text-color);
    padding: 15px 30px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,1);
    border-radius: 40px;
}

.reset-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,1);
}

.reset-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0,0,0,1);
}

/* Loading */
.loading {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 40px 0;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.3; }
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.scroll-top-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 243, 237, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.modal-body input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    background: var(--bg-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.link-btn {
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
}

.save-btn {
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: #333;
}

/* --- Added Features Styling --- */

/* Hot Topics */
.hot-topics {
    margin-bottom: 20px;
}

.hot-topics h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-btn {
    background: #fff;
    border: 1px solid var(--text-color);
    padding: 8px 15px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.topic-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,1);
}

/* Submit Button Hover Animation */
.submit-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05) translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

/* Vote Section */
.vote-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed #ddd;
    animation: fadeIn 0.5s ease forwards;
}

.vote-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
}

.vote-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vote-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.vote-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,1);
    background: #f8f8f8;
}

.vote-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0,0,0,1);
}

#vote-a-btn:hover { background: #ffe6e6; }
#vote-b-btn:hover { background: #e6f2ff; }

.vote-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.vote-count {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
}

.vote-vs {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .left-section, .right-section {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        padding: 0 20px;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .input-wrapper.large-rounded {
        padding: 30px;
    }
    
    .action-center-btn {
        width: 100%;
        justify-content: center;
    }
    
    .topic-buttons {
        flex-direction: column;
    }
    
    .topic-btn {
        width: 100%;
        text-align: left;
    }
    
    .result-section {
        padding: 30px 20px;
    }
    
    .vote-buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vote-vs {
        display: none;
    }
    
    .vote-btn {
        width: 100%;
    }
}

/* --- Advanced UI Features (Card News, Share, Feed, Participants) --- */

/* Result Overlay & Card Delivery */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.result-card-container {
    background: #fff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    overflow-y: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    animation: cardDeliver 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.close-result-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-result-btn:hover {
    background: var(--text-color);
    color: #fff;
    transform: rotate(90deg);
}

.delivered-badge {
    display: inline-block;
    font-family: var(--font-heading);
    background: var(--accent-color);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

#judgment-text {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.15rem;
    position: relative;
}

#judgment-text p {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    animation: digitalReveal 0.6s forwards;
}

#judgment-text strong {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(216, 198, 237, 0.5);
    font-weight: 900;
}

/* Digital Cursor Effect */
.typing-cursor::after {
    content: '_';
    margin-left: 4px;
    color: var(--accent-color);
    font-weight: bold;
    animation: digitalBlink 0.8s infinite;
    text-shadow: 0 0 12px var(--accent-color);
}

@keyframes digitalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes digitalReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* 스트리밍 중에는 각 문단의 애니메이션을 꺼서 플리커링(flicker) 방지 */
#judgment-text.streaming p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.loading-msg {
    color: #888;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Share Section */
.share-section {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
}

.share-btn {
    background: #fff;
    border: 1px solid var(--text-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.kakao-btn {
    background: #FEE500; /* Kakao Yellow */
    border-color: #FEE500;
    color: #000;
}

.kakao-btn:hover {
    background: #e6ce00;
    color: #000;
    border-color: #e6ce00;
}

/* Participant Count */
.vote-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.participant-count {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
}

.highlight-count {
    color: var(--text-color);
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #FF3B30;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Slide up effects for content */
.slide-up-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.slide-up-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Feed Section */
.feed-section {
    margin: 100px 0;
}

.feed-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-color);
}

.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feed-card {
    background: #fff;
    padding: 25px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.05);
    border-color: var(--accent-hover);
}

.feed-badge {
    align-self: flex-start;
    background: var(--accent-color);
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.feed-text {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    flex-grow: 1;
}

.feed-stats {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 15px;
    font-weight: 700;
}

/* --- Hammer Loading Overlay & Animations --- */

/* --- Hammer Loading Overlay & Animations --- */

.hammer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 23, 0.85); /* 투명도 조정 */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
}

.scan-container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.scan-hud {
    position: relative;
    width: 250px;
    max-width: 80vw; /* 모바일 대응 가변폭 */
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto 40px;
    border: 2px solid rgba(216, 198, 237, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Corner Accents */
.scan-hud::before, .scan-hud::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
}

.scan-hud::before { top: 15px; left: 15px; border-right: 0; border-bottom: 0; }
.scan-hud::after { bottom: 15px; right: 15px; border-left: 0; border-top: 0; }

.scan-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scan-icon {
    font-size: 6rem;
    filter: drop-shadow(0 0 20px rgba(216, 198, 237, 0.5));
    user-select: none;
    z-index: 2;
}

.scan-line {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 5;
    animation: scanningMove 3s linear infinite;
}

@keyframes scanningMove {
    0% { top: 0%; opacity: 0.2; }
    10% { opacity: 1; }
    50% { top: 100%; }
    90% { opacity: 1; }
    100% { top: 0%; opacity: 0.2; }
}

/* Data Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.data-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
}

.data-particles span:nth-child(1) { left: 20%; animation: particleFly 2s infinite 0.1s; }
.data-particles span:nth-child(2) { left: 40%; animation: particleFly 2s infinite 0.5s; }
.data-particles span:nth-child(3) { left: 60%; animation: particleFly 2s infinite 1s; }
.data-particles span:nth-child(4) { left: 80%; animation: particleFly 2s infinite 1.5s; }
.data-particles span:nth-child(5) { left: 50%; animation: particleFly 2s infinite 0.8s; }

@keyframes particleFly {
    0% { transform: translateY(120%) scale(1); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20%) scale(0.5); opacity: 0; }
}

.hammer-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scanning-stats {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.stat-item {
    border-right: 1px solid rgba(216, 198, 237, 0.3);
    padding-right: 15px;
}

.stat-item:last-child { border: none; }


/* Prevent scroll during animation */
body.animating {
    overflow: hidden !important;
}


/* Partnership Button & Modal */
.partnership-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partnership-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.partnership-content {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.send-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    border-radius: 12px;
}

/* Responsive Final Polish */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column; /* 모바일에서 세로로 길게 배치 */
        gap: 40px;
        margin: 40px 0;
    }
    
    .left-section, .right-section {
        width: 100%;
        flex: none;
    }

    .large-rounded {
        padding: 24px;
        border-radius: 24px;
    }
    
    textarea {
        font-size: 1.1rem;
        min-height: 150px;
    }

    .card-news-style {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }

    .main-title {
        font-size: 3.2rem; /* 모바일 제목 크기 재조정 */
    }
    
    .partnership-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 0;
    }
    
    .modal-content {
        padding: 20px;
        width: 92%;
        border-radius: 16px;
    }

    .submit-btn {
        padding: 16px 30px;
        font-size: 1.2rem;
    }

    .scan-icon {
        font-size: 4.2rem;
    }

    .hammer-text {
        font-size: 1.1rem;
    }

    .scanning-stats {
        font-size: 0.65rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat-item {
        padding-right: 8px;
        border-right: none;
        background: rgba(216, 198, 237, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
    }
}

/* Real-time Feed Section */
.feed-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feed-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.feed-card:hover {
    transform: translateY(-8px);
    box-shadow: 15px 15px 0px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.feed-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    width: fit-content;
}

.feed-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-stats {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    font-weight: 600;
}

.empty-feed {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    background: rgba(216, 198, 237, 0.1);
    border: 2px dashed var(--accent-color);
    border-radius: 20px;
    color: #666;
    font-weight: 600;
}
