@charset "utf-8";

/* =========================================================
   SA 통합센터 / 쟈쟈서버 공통 레이아웃 스타일
   Modern Stone - JAJA Bright Compact
   index.php 내부 <style> 없이 이 파일에서만 관리
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #263038;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 216, 77, 0.28), transparent 28%),
        radial-gradient(circle at 88% 6%, rgba(104, 190, 215, 0.28), transparent 30%),
        linear-gradient(180deg, #eaf7fb 0%, #f8f4e9 48%, #e8f3f6 100%) !important;
}

body:before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(52, 67, 76, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 67, 76, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.sa-page {
    position: relative;
    min-height: 100vh;
}

/* HEADER */
.sa-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 21, 0.94);
    border-bottom: 1px solid rgba(255, 216, 77, 0.32);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
}

.sa-header-inner {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-logo-mark {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: none !important;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}

.sa-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sa-logo-text strong {
    display: block;
    color: #fff4d8;
    font-size: 21px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.sa-logo-text em {
    display: block;
    margin-top: 4px;
    color: rgba(255,246,223,.62);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.1px;
}

.sa-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sa-nav-item {
    position: relative;
}

.sa-nav-link {
    display: block;
    padding: 12px 15px;
    color: rgba(255,246,223,.82);
    font-size: 15px;
    font-weight: 900;
    border-radius: 999px;
    transition: background 0.16s ease, color 0.16s ease;
}

.sa-nav-link:hover {
    background: rgba(255,216,77,0.14);
    color: #ffffff;
}

.sa-drop-menu {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    min-width: 188px;
    padding: 8px;
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid rgba(224, 194, 122, 0.85);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}

.sa-nav-item:hover .sa-drop-menu {
    display: block;
}

.sa-drop-menu a {
    display: block;
    padding: 11px 13px;
    color: #2d3338;
    font-size: 14px;
    font-weight: 900;
    border-radius: 12px;
}

.sa-drop-menu a:hover {
    background: #fff1bd;
    color: #1b1f22;
}

/* MAIN */
.sa-main,
.sa-main-redesign {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 62px;
    color: #263038;
}

/* 기존 섹션 제목이 남아있어도 화면에서 숨김 */
.s2-section-head {
    display: none !important;
}

/* HERO */
.s2-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 330px;
    gap: 22px;
    align-items: stretch;
    border: 1px solid rgba(218, 181, 73, .72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 10%, rgba(255,216,77,.25), transparent 32%),
        radial-gradient(circle at 10% 92%, rgba(104,190,215,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,249,229,.97)) !important;
    box-shadow: 0 18px 44px rgba(86, 100, 110, .16);
    padding: 38px;
    margin-bottom: 14px;
}

.s2-hero:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to bottom, #ffd84d, rgba(255,216,77,.42));
}

.s2-hero:after {
    content: "";
    position: absolute;
    right: -110px;
    top: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,216,77,.22), transparent 68%);
    pointer-events: none;
}

.s2-hero-main,
.s2-hero-side {
    position: relative;
    z-index: 1;
}

.s2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 999px;
    background: #20272d;
    border: 1px solid rgba(255,216,77,.42);
    color: #ffd84d;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .6px;
}

.s2-title {
    margin: 18px 0 14px;
    color: #22282e;
    font-size: 44px;
    line-height: 1.12;
    font-weight: 1000;
    letter-spacing: -2px;
}

.s2-title em {
    color: #f0b900;
    font-style: normal;
}

.s2-desc {
    max-width: 690px;
    color: #59646b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.75;
    word-break: keep-all;
}

.s2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.s2-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,216,77,.58);
    background: linear-gradient(135deg, #ffd84d, #dcae2d);
    color: #15191c !important;
    font-size: 14px;
    font-weight: 1000;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(93, 76, 26, .16);
    transition: .15s ease;
}

.s2-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.s2-action-btn.sub {
    background: #20272d;
    color: #fff0c8 !important;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 10px 20px rgba(47, 59, 68, 0.15);
}

.s2-action-btn.sub:hover {
    background: #11171c;
}

/* START SIDE */
.s2-hero-side {
    border: 1px solid rgba(218, 196, 141, 0.62);
    border-radius: 22px;
    background: rgba(255,255,255,.76) !important;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.s2-hero-side h3 {
    margin: 0 0 16px;
    color: #22282e;
    font-size: 19px;
    font-weight: 1000;
    letter-spacing: -0.6px;
}

.s2-steps {
    display: grid;
    gap: 10px;
}

.s2-step {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #fffdf7 !important;
    border: 1px solid rgba(218, 196, 141, 0.56);
}

.s2-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,.65), transparent 35%),
        linear-gradient(135deg, #ffe36a, #ffc928);
    color: #20272d;
    font-size: 15px;
    font-weight: 1000;
    letter-spacing: -0.4px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.68),
        0 8px 16px rgba(188, 141, 25, .18);
    flex-shrink: 0;
}

.s2-step strong {
    display: block;
    color: #22282e;
    font-size: 14px;
    font-weight: 1000;
    margin-bottom: 4px;
}

.s2-step span {
    display: block;
    color: #66727a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    word-break: keep-all;
}

/* NOTICE */
.s2-notice-bar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
    border: 1px solid rgba(218, 181, 73, .62);
    border-radius: 18px;
    background: rgba(255,255,255,.75) !important;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(86, 100, 110, 0.10);
}

.s2-notice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 999px;
    background: #20272d;
    color: #ffd84d;
    font-size: 12px;
    font-weight: 1000;
}

.s2-notice-text {
    color: #59646b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    word-break: keep-all;
}

/* INFO MENU CARDS */
.s2-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0 0 14px;
}

.s2-info-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 60px;
    border: 1px solid rgba(218, 196, 141, 0.64);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0%, rgba(255,216,77,.18), transparent 38%),
        rgba(255,255,255,.86) !important;
    box-shadow: 0 12px 30px rgba(86, 100, 110, .13);
    padding: 13px 16px;
    text-decoration: none !important;
    transition: .15s ease;
}

.s2-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,196,48,.86);
    background:
        radial-gradient(circle at 92% 0%, rgba(255,216,77,.24), transparent 38%),
        rgba(255,255,255,.98) !important;
}

/* 혹시 index에 기존 텍스트가 남아 있어도 숨김 */
.s2-info-card > strong,
.s2-info-card > span:not(.s2-card-img-label) {
    display: none !important;
}

.s2-card-img-label {
    display: block;
    width: 100%;
    height: 32px;
    border-radius: 999px;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 100% 100%, 100% 100%;
}

.card-sys {
    background-image:
        url('/sa2/img/main/system_info_text_transparent.png'),
        url('/sa2/img/main/card_sys.png');
}

.card-item {
    background-image:
        url('/sa2/img/main/item_info_text_transparent.png'),
        url('/sa2/img/main/card_item.png');
}

.card-pet {
    background-image:
        url('/sa2/img/main/pet_info_text_transparent.png'),
        url('/sa2/img/main/card_pet.png');
}

.card-map {
    background-image:
        url('/sa2/img/main/map_info_text_transparent.png'),
        url('/sa2/img/main/card_map.png');
}

.card-quest {
    background-image:
        url('/sa2/img/main/quest_info_text_transparent.png'),
        url('/sa2/img/main/card_quest.png');
}

.card-raid {
    background-image:
        url('/sa2/img/main/raid_info_text_transparent.png'),
        url('/sa2/img/main/card_raid.png');
}

/* BOTTOM CARDS */
.s2-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.s2-bottom-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(218, 196, 141, 0.64);
    border-radius: 24px;
    background:
        radial-gradient(circle at 94% 0%, rgba(255,216,77,.18), transparent 38%),
        rgba(255,255,255,.86) !important;
    box-shadow: 0 12px 30px rgba(86, 100, 110, .13);
    padding: 24px;
}

.s2-bottom-card h3 {
    margin: 0 0 10px;
    color: #22282e;
    font-size: 22px;
    font-weight: 1000;
    letter-spacing: -0.8px;
}

.s2-bottom-card p {
    margin: 0;
    color: #66727a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
    word-break: keep-all;
}

.s2-bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    margin-top: 18px;
    border-radius: 12px;
    background: #ffd84d;
    color: #15191c !important;
    font-size: 13px;
    font-weight: 1000;
    text-decoration: none !important;
}

.s2-bottom-card.discord .s2-bottom-btn {
    background: linear-gradient(135deg, #5865f2, #3442b8);
    color: #fff !important;
}

/* FOOTER */
.sa-footer {
    padding: 32px 18px;
    background: rgba(13, 17, 21, 0.96);
    border-top: 1px solid rgba(255,216,77,0.22);
    color: rgba(255,246,223,.56);
    text-align: center;
    font-size: 13px;
}

.sa-footer strong {
    display: block;
    color: #fff4d8;
    font-size: 17px;
}

.sa-footer span {
    display: block;
    margin-top: 8px;
}

.sa-footer p {
    margin: 9px 0 0;
}

/* RESPONSIVE */
@media screen and (max-width: 980px) {
    .s2-hero {
        grid-template-columns: 1fr;
        padding: 32px 26px;
    }

    .s2-title {
        font-size: 36px;
    }

    .s2-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 860px) {
    .sa-header-inner {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-direction: column;
        gap: 12px;
    }

    .sa-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sa-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media screen and (max-width: 680px) {
    .sa-main-redesign {
        padding: 26px 12px 54px;
    }

    .s2-hero {
        border-radius: 22px;
        padding: 28px 20px;
    }

    .s2-title {
        font-size: 30px;
    }

    .s2-desc {
        font-size: 14px;
    }

    .s2-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .s2-action-btn {
        width: 100%;
    }

    .s2-info-grid,
    .s2-bottom-grid {
        grid-template-columns: 1fr;
    }

    .s2-notice-bar {
        grid-template-columns: 1fr;
    }
}
