@charset "utf-8";

/* ==========================================================================
   AllKillTV Main CSS (aktv_main.css)
   v1.2 Optimized
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 공통 변수 (Variables) & 유틸리티
-------------------------------------------------------------------------- */
:root {
    /* 랭킹 페이지용 변수 */
    --rank-bg: #1e293b;
    --rank-card-bg: #0f172a;
    --rank-border: #334155;
    --rank-text-main: #f1f5f9;
    --rank-text-sub: #94a3b8;
    --rank-accent: #3b82f6;
}

/* 유틸리티 클래스 */
.border_x { height: 1700px; overflow-y: auto; margin-bottom: 10px; }

@media (max-width: 500px) {
    .mobile_none {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
}

/* --------------------------------------------------------------------------
   1. 통합 배너 (Eye-catching Ver)
-------------------------------------------------------------------------- */
.aktv_banner_container {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 60px; margin-bottom: 8px; position: relative;
    text-decoration: none !important; border-radius: 8px; overflow: hidden; box-sizing: border-box;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

/* 호버 효과 */
.aktv_banner_container:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 텍스트 스타일 */
.aktv_banner_content {
    position: relative; z-index: 10;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 17px; color: #fff; font-weight: 500;
    display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px;
}

.aktv_sep { opacity: 0.4; margin-top: -2px; }

.aktv_highlight {
    font-weight: 800; font-size: 18px; text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.aktv_icon { font-size: 14px; transition: transform 0.3s ease; }
.aktv_banner_container:hover .aktv_icon { transform: translateX(5px); }

/* 광택(Shine) 애니메이션 (Hover Only) */
.aktv_banner_container::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg); pointer-events: none;
}
.aktv_banner_container:hover::before {
    animation: aktv_shine 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes aktv_shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* 테마별 컬러 설정 */
.theme-dark {
    background: linear-gradient(314deg, #05284b 0%, #0f172a 40%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.theme-dark .aktv_label { color: #cbd5e1; }
.theme-dark .aktv_highlight { color: #ffffff; }

.theme-vivid-orange {
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-vivid-orange .aktv_label { color: #fff7ed; }
.theme-vivid-orange .aktv_highlight { color: #ffffff; }

.theme-vivid-red {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-vivid-red .aktv_label { color: #fee2e2; }
.theme-vivid-red .aktv_highlight { color: #ffffff; }

/* 배너 모바일 대응 */
@media (max-width: 380px) {
    .aktv_banner_content { font-size: 15px; gap: 8px; }
    .aktv_highlight { font-size: 16px; }
}


/* --------------------------------------------------------------------------
   2. 통합 랭킹 및 계급 페이지
-------------------------------------------------------------------------- */
.rank_wrapper {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: var(--rank-bg); color: var(--rank-text-main);
    padding: 30px 20px; border-radius: 12px; min-height: 800px;
}

/* 탭 메뉴 */
.rank_tabs { display: flex; gap: 10px; margin-bottom: 24px; border-bottom: 2px solid var(--rank-border); padding-bottom: 0; }
.rank_tab_btn {
    background: transparent; border: none; color: var(--rank-text-sub);
    font-size: 16px; font-weight: 700; padding: 12px 24px;
    cursor: pointer; position: relative; transition: all 0.3s ease;
}
.rank_tab_btn:hover { color: #fff; }
.rank_tab_btn.active { color: var(--rank-accent); }
.rank_tab_btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--rank-accent);
}

/* 내 순위 카드 */
.my_rank_card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--rank-border); border-radius: 8px;
    padding: 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.my_rank_text { font-size: 15px; color: var(--rank-text-sub); }
.my_rank_highlight { color: #fbbf24; font-weight: 800; font-size: 18px; margin: 0 4px; }

/* 랭킹 테이블 */
.rank_table_container {
    background: var(--rank-card-bg); border: 1px solid var(--rank-border);
    border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.rank_table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.rank_table th {
    background: #1e293b; color: #cbd5e1; font-weight: 600; padding: 16px;
    font-size: 14px; text-align: center; border-bottom: 1px solid var(--rank-border);
}
.rank_table td {
    padding: 14px 16px; border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: var(--rank-text-main); font-size: 14px; text-align: center; vertical-align: middle;
}
.rank_table tr:hover { background-color: rgba(51, 65, 85, 0.3); }

/* 뱃지 및 기타 요소 */
.rank_badge_box { display: flex; justify-content: center; align-items: center; }
.rank_badge {
    display: flex; justify-content: center; align-items: center;
    width: 28px; height: 28px; border-radius: 6px;
    font-weight: 800; font-size: 13px; color: #fff;
    transform: skewX(-10deg); box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.rank_badge span { transform: skewX(10deg); }
.rank_1 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.rank_2 { background: linear-gradient(135deg, #f97316, #c2410c); }
.rank_3 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.rank_etc { background: #475569; color: #cbd5e1; }

.user_info { display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.level_icon img { height: 18px; width: auto; vertical-align: middle; }
.point_val { font-family: 'Roboto', sans-serif; color: #fbbf24; font-weight: 600; }
.exp_val { font-family: 'Roboto', sans-serif; color: #4ade80; font-weight: 600; }

.tab_content { display: none; animation: fadeIn 0.3s ease; }
.tab_content.active { display: block; }

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

@media (max-width: 768px) {
    .rank_wrapper { padding: 15px 10px; }
    .rank_tab_btn { padding: 10px 15px; font-size: 14px; }
    .rank_table_wrapper { overflow-x: auto; }
}


/* --------------------------------------------------------------------------
   3. 경험치 & 포인트 이용안내 (akpoint_)
-------------------------------------------------------------------------- */
.akpoint_wrapper {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: #1e293b; color: #f1f5f9; padding: 30px 20px;
    border-radius: 12px; line-height: 1.6; max-width: 100%; box-sizing: border-box;
}
.akpoint_main_title {
    font-size: 26px; font-weight: 800; margin-bottom: 10px; color: #ffffff;
    border-bottom: 2px solid #334155; padding-bottom: 15px;
}
.akpoint_sub_desc { font-size: 14px; color: #94a3b8; margin-bottom: 30px; }

.akpoint_section {
    background: #0f172a; border: 1px solid #334155; border-radius: 12px;
    padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.akpoint_sec_head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px dashed #334155;
}
.akpoint_sec_title { font-size: 20px; font-weight: 700; color: #e2e8f0; }

.akpoint_badge { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.akpoint_badge.xp { background: #3b82f6; color: #fff; }
.akpoint_badge.pt { background: #fbbf24; color: #000; }

.akpoint_xp_grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.akpoint_xp_item {
    background: #1e293b; padding: 12px; border-radius: 8px;
    text-align: center; border: 1px solid #334155;
}
.akpoint_xp_name { display: block; font-size: 13px; color: #cbd5e1; margin-bottom: 4px; }
.akpoint_xp_val { font-size: 16px; font-weight: 700; }
.akpoint_plus { color: #4ade80; }
.akpoint_minus { color: #f87171; }

.akpoint_link_box {
    text-align: center; background: #1e293b; padding: 15px;
    border-radius: 8px; margin-top: 15px;
}
.akpoint_btn {
    display: inline-block; background: #2563eb; color: #fff;
    text-decoration: none; padding: 10px 20px; border-radius: 6px;
    font-weight: 600; transition: 0.2s;
}
.akpoint_btn:hover { background: #1d4ed8; }

.akpoint_list { list-style: none; padding: 0; margin: 0; }
.akpoint_list li {
    position: relative; padding-left: 14px; margin-bottom: 8px;
    font-size: 15px; color: #cbd5e1;
}
.akpoint_list li::before {
    content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px;
    background: #64748b; border-radius: 50%;
}
.akpoint_highlight { color: #fbbf24; font-weight: 600; }

.akpoint_earn_box { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; }
.akpoint_earn_card {
    flex: 1 1 calc(50% - 15px); background: #1e293b;
    padding: 15px; border-radius: 8px; border: 1px solid #334155;
}
.akpoint_earn_title {
    font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px;
    border-bottom: 1px solid #334155; padding-bottom: 5px;
}
.akpoint_reward_total { display: block; margin-top: 5px; font-size: 13px; color: #fbbf24; }

.akpoint_prison_box {
    border: 1px solid #7f1d1d;
    background: linear-gradient(180deg, rgba(127,29,29,0.1) 0%, rgba(15,23,42,1) 100%);
}
.akpoint_prison_title {
    color: #f87171; font-weight: 700; font-size: 18px;
    margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
}
.akpoint_rule_item { margin-bottom: 15px; }
.akpoint_rule_head { font-weight: 700; color: #fca5a5; margin-bottom: 4px; display: block; }
.akpoint_rule_desc { font-size: 14px; color: #94a3b8; }

@media (max-width: 600px) {
    .akpoint_earn_card { flex: 1 1 100%; }
    .akpoint_xp_grid { grid-template-columns: repeat(2, 1fr); }
}


/* --------------------------------------------------------------------------
   4. SEO Footer (Compact + Accordion)
-------------------------------------------------------------------------- */
.ak_footer_seo {
    width: 100%; margin: 0 auto; padding: 20px 0;
    background: #0f172a; color: #64748b;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px; line-height: 1.6; border-top: 1px solid #1e293b;
}
.ak_seo_inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

.ak_seo_head {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.ak_seo_h1 { margin: 0; font-size: 15px; font-weight: 700; color: #94a3b8; }
.ak_seo_summary { margin: 0; font-size: 13px; color: #475569; }

/* 토글 버튼 */
input[id="seo_toggle"] { display: none; }
.seo_btn_label {
    display: inline-block; margin-top: 10px; padding: 6px 16px;
    border: 1px solid #334155; border-radius: 20px;
    font-size: 12px; color: #64748b; cursor: pointer; transition: all 0.3s;
}
.seo_btn_label:hover {
    background: #1e293b; color: #cbd5e1; border-color: #475569;
}
.seo_btn_label::after { content: "사이트 소개 더보기 ▾"; }

/* 숨겨진 콘텐츠 */
.ak_seo_body { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s ease; }

/* 체크박스 동작 */
input[id="seo_toggle"]:checked ~ .ak_seo_body {
    max-height: 1000px; opacity: 1; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #334155;
}
input[id="seo_toggle"]:checked + .ak_seo_head .seo_btn_label::after { content: "소개 내용 접기 ▴"; }
input[id="seo_toggle"]:checked + .ak_seo_head .seo_btn_label {
    background: #1e293b; color: #30a0ff; border-color: #30a0ff;
}

/* 그리드 레이아웃 */
.ak_seo_grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left;
}
.ak_seo_col h3 {
    font-size: 13px; font-weight: 700; color: #cbd5e1;
    margin: 0 0 8px 0; border-bottom: 1px solid #334155; padding-bottom: 4px;
}
.ak_seo_col ul { margin: 0; padding: 0; list-style: none; }
.ak_seo_col li {
    position: relative; padding-left: 8px; margin-bottom: 4px; font-size: 12px; color: #64748b;
}
.ak_seo_col li::before { content: "•"; position: absolute; left: 0; color: #334155; }

.ak_seo_footer_text { margin-top: 20px; text-align: center; font-size: 12px; color: #334155; }

@media (max-width: 768px) {
    .ak_seo_grid { grid-template-columns: 1fr; }
    .ak_seo_col { margin-bottom: 15px; }
}