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

html, body {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
}

/* APP */
#app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding-bottom: 110px;
}

/* HEADER */
.header {
    width: 100%;
    background: #000;
    border-bottom: 1px solid #111;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { width: 105px; }

.auth-buttons { display: flex; gap: 8px; }

.auth-buttons button {
    padding: 5px 10px;
    background: #111;
    color: #fff;
    border-radius: 14px;
    border: 1px solid #333;
    font-size: 12px;
}

/* HERO */
.hero { padding: 22px 16px 12px; }
.hero-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.hero-desc { font-size: 13px; color: #aaa; }

/* CATEGORY */
.category-section { padding: 10px 0 16px; }
.chip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px;
}
.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
    background: #171717;
    color: #ccc;
    padding: 7px 13px;
    font-size: 13px;
    border-radius: 18px;
    border: 1px solid #333;
    white-space: nowrap;
}
.chip.active { background: #fff; color: #000; }

/* SECTION */
.section { margin-top: 28px; }
.section-title {
    padding: 0 16px;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
}

/* CARD */
.card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    margin: 0 16px 24px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* TOP */
.card-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}

/* AUTHOR + LEVEL */
.card-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-wrap { 
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-name { font-weight: 700; }

.level-badge {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 6px;
    background: #222;
    border: 1px solid #444;
    color: #ffe27a;
    font-weight: 700;
}

.follow-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
}

/* TITLE / DESC */
.card-title {
    font-size: 18px;
    font-weight: 800;
}
.card-desc {
    font-size: 13px;
    color: #bbb;
}

/* CARD IMAGE */
.card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
}

/* SPEECH */
.speech-btn {
    background: #161616;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #222;
    text-align: center;
}

/* VOTE SECTION */
.vote-title { font-size: 14px; font-weight: 700; }

.vote-bar {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
}

.vote-pro { background: #0094ff; }
.vote-con { background: #ff4f6e; }

.vote-stats {
    font-size: 11px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.vote-buttons { display: flex; gap: 12px; }

.btn-pro, .btn-con {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.btn-pro {
    background: #1a1f3c;
    border: 1px solid #304ffe;
}
.btn-con {
    background: #3c1a1a;
    border: 1px solid #ff5252;
}

.active-vote {
    background: #ffe27a !important;
    color: #111 !important;
    border: 1px solid #ffe27a !important;
}

/* SUPPORT SECTION */
.support-box {
    background: #0b0b0b;
    border: 1px solid #222;
    padding: 18px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-bar {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
}

.sup-pro { background: #0094ff; }
.sup-con { background: #ff4f6e; }

/* FOOTER ICONS */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-icons img {
    width: 22px;
    filter: brightness(0) invert(1);
}

/* MORE BTN */
.more-btn {
    width: 32px;
    height: 32px;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* NAVIGATION */
.nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #000;
    border-top: 1px solid #222;
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-around;
}

.nav-icon {
    width: 26px;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #111;
    padding: 24px;
    border-radius: 14px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border: 1px solid #333;
}

#modal-close {
    background: #ffe27a;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
}

/* --- FIX: More button (…) inside feed card --- */
.card .more-btn svg,
.card .more-btn svg * {
    stroke: #ffffff !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* --- FIX: 더보기 텍스트 버튼 --- */
.more-list-btn {
    display: block !important;
    text-align: center !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    font-size: 14px !important;
    opacity: 0.7 !important;
}

.more-list-btn:hover {
    opacity: 1 !important;
}

/* --- BEST SECTION 더보기 버튼 FIX --- */
.more-list-btn {
    display: block;
    width: 100%;
    text-align: center;

    margin: 18px auto 0 auto;
    padding: 10px 0;

    background: transparent !important;
    border: none !important;

    font-size: 14px;
    font-weight: 500;
    color: #cccccc; /* 너무 튀지 않는 중간 톤 */

    opacity: 0.7;
    transition: 0.2s;
}

.more-list-btn:hover {
    opacity: 1;
    color: #ffffff;
}

