/* Override CSS - Fix image paths and English adjustments */

/* Fix all CSS image paths from /img/ to /assets/img/ */
/* The original CSS references /img/ paths. We need a base rewrite.
   Instead, let's create a symlink. */

/* Footer for our custom layout */
.footer_area {
    background: #161C40;
    padding: 24px 16px 100px;
    margin-top: 0;
}
.footer_area .footer_inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer_area .footer_links {
    margin-bottom: 16px;
    font-size: 13px;
}
.footer_area .footer_links a {
    color: #8B95A1;
    text-decoration: none;
}
.footer_area .footer_links a:hover {
    color: #fff;
}
.footer_area .footer_links .bar {
    color: #4E5968;
    margin: 0 8px;
}
.footer_area .footer_info .company {
    color: #6B7684;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.footer_area .footer_info .desc {
    color: #6B7684;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.footer_area .footer_info .copyright {
    color: #4E5968;
    font-size: 11px;
    margin-bottom: 4px;
}
.footer_area .footer_info .disclaimer {
    color: #4E5968;
    font-size: 10px;
    line-height: 1.5;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .gnb {
        /* Show bottom nav on desktop too for consistency */
    }
    #container {
        max-width: 768px;
        margin: 0 auto;
    }
}

/* English text adjustments */
.title a, .title {
    word-break: normal;
}

/* Sub page top area */
.sub_top_bg {
    background: linear-gradient(180deg, #161C40 0%, #1D2654 100%);
    padding: 20px 16px 24px;
}
.sub_top .h2_title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.sub_top .sub_txt {
    color: #8B95A1;
    font-size: 13px;
}
.sub_top .stock_header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub_top .ticker_code {
    color: #8B95A1;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.sub_top .stock_price_area {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.sub_top .current_price {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
.sub_top .price_change {
    font-size: 16px;
    font-weight: 600;
}
.sub_top .price_change.increase { color: #F03E4C; }
.sub_top .price_change.decrease { color: #097DF3; }

/* Recommend list area */
.recommend_list_area {
    padding: 0 16px;
}
.recommend_list_area .area {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.signal_info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F2F4F6;
}
.badge_signal {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge_signal.buy { background: #E8F5E9; color: #2E7D32; }
.badge_signal.sell { background: #FFEBEE; color: #C62828; }
.badge_signal.hold { background: #FFF3E0; color: #E65100; }
.badge_signal.watch { background: #E3F2FD; color: #1565C0; }
.score_badge {
    font-size: 12px;
    color: #6B7684;
}
.score_badge b {
    color: #4168F6;
    font-weight: 700;
}

/* News list */
.news_list_area, .signal_list_area, .game_list_area {
    padding: 0 16px;
}
.news_list .news_item {
    padding: 14px 0;
    border-bottom: 1px solid #F2F4F6;
}
.news_list .news_item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
}
.news_list .news_stock {
    display: inline-block;
    font-size: 11px;
    color: #4168F6;
    font-weight: 600;
    margin-bottom: 4px;
}
.news_list .news_title {
    font-size: 14px;
    color: #24282C;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}
.news_list .news_date {
    font-size: 12px;
    color: #8B95A1;
}
.news_list .news_img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}
.news_list .news_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Summary */
.search_summary_area {
    padding: 16px;
}
.summary_card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.summary_card .card_header {
    padding: 16px 16px 0;
}
.summary_card .card_header .title {
    font-size: 16px;
    font-weight: 700;
    color: #24282C;
}
.summary_card .card_body {
    padding: 16px;
}
.signal_badge_wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}
.signal_badge_wrap .badge_signal {
    font-size: 18px;
    padding: 8px 24px;
}
.score_wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 16px 0;
}
.score_big {
    font-size: 48px;
    font-weight: 800;
    color: #4168F6;
}
.score_label {
    font-size: 18px;
    color: #8B95A1;
    margin-left: 4px;
}
.metrics_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.metric_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric_item .label {
    font-size: 12px;
    color: #8B95A1;
}
.metric_item .value {
    font-size: 16px;
    font-weight: 600;
    color: #24282C;
}

/* Login */
.login_area {
    padding: 24px 16px;
    max-width: 400px;
    margin: 0 auto;
}
.login_form .form_group {
    margin-bottom: 16px;
}
.login_form .form_group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #24282C;
    margin-bottom: 6px;
}
.login_form .form_group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E5E8EB;
    border-radius: 8px;
    font-size: 14px;
    background: #F9FAFB;
}
.login_form .form_group input:focus {
    outline: none;
    border-color: #4168F6;
    background: #fff;
}
.login_form .form_check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}
.login_form .forgot_link {
    color: #4168F6;
    font-size: 13px;
}
.btn_login_submit {
    width: 100%;
    padding: 14px;
    background: #4168F6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.btn_login_submit:hover {
    background: #3457D5;
}
.signup_link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6B7684;
}
.signup_link a {
    color: #4168F6;
    font-weight: 600;
}

/* Service/Pricing */
.service_area {
    padding: 16px;
}
.plan_card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
}
.plan_card.featured {
    border: 2px solid #4168F6;
}
.popular_tag {
    position: absolute;
    top: 0;
    right: 16px;
    background: #4168F6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    font-weight: 700;
}
.plan_header {
    padding: 24px 16px 16px;
    text-align: center;
}
.plan_name {
    font-size: 18px;
    font-weight: 700;
    color: #24282C;
    margin-bottom: 8px;
}
.plan_price {
    font-size: 36px;
    font-weight: 800;
    color: #4168F6;
}
.plan_price .period {
    font-size: 14px;
    color: #8B95A1;
    font-weight: 400;
}
.plan_body {
    padding: 0 16px 24px;
}
.plan_features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.plan_features li {
    padding: 8px 0;
    border-bottom: 1px solid #F2F4F6;
    font-size: 14px;
    color: #4E5968;
}
.plan_features li::before {
    content: '✓';
    color: #27AE60;
    font-weight: 700;
    margin-right: 8px;
}
.btn_plan {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: #F2F4F6;
    color: #24282C;
}
.btn_plan.btn_primary {
    background: #4168F6;
    color: #fff;
}

/* Terms/Privacy */
.terms_area {
    padding: 16px;
}
.terms_content {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
}
.terms_content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #24282C;
    margin: 24px 0 8px;
}
.terms_content h3:first-child {
    margin-top: 0;
}
.terms_content p {
    font-size: 14px;
    color: #4E5968;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Premium CTA at bottom of home */
.premium_cta {
    padding: 0 16px;
    margin-bottom: 24px;
}
.prem_banner_list .prem_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #24282C;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.prem_item .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #4168F6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Game/Winner area on home */
.game_area {
    padding: 0 16px;
    margin-bottom: 24px;
}
.game_area > .title {
    font-size: 18px;
    font-weight: 700;
}
.game_area > .title a {
    color: #24282C;
    text-decoration: none;
}
.game_area > .more {
    float: right;
    margin-top: -24px;
}

/* News area on home */
.news_area {
    padding: 0 16px;
    margin-bottom: 24px;
}
.news_area > .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.news_area > .title a {
    color: #24282C;
    text-decoration: none;
}
.news_area > .more {
    float: right;
    margin-top: -32px;
}

/* Game list area (winner page) */
.game_list_area .game_item {
    margin-bottom: 12px;
}
.game_list_area .area {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
