/* =====================================================
   JJAPTOON Notice UI v3
   app.css
   Part 1
===================================================== */

/* ---------- Reset ---------- */

img{
    display:block;
    max-width:100%;
}

button{
    font:inherit;
    border:none;
    cursor:pointer;
    outline:none;
}

a{
    color:inherit;
    text-decoration:none;
}

ul{
    margin:0;
    padding:0;
    list-style:none;
}

h1,h2,h3,h4,h5,h6,p{
    margin:0;
}

/* ---------- Body ---------- */

body{

    min-height:100vh;

    background:var(--bg);

    color:var(--text);

    position:relative;

    overflow-x:hidden;

}

/* ---------- Background ---------- */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

        linear-gradient(
            180deg,
            rgba(250,204,21,.04),
            transparent
        );

    pointer-events:none;

    z-index:-2;

}

body::after{

    content:"";

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-1;

    display:none;

}

/* ---------- Particle Layer ---------- */

#particles{

    position:fixed;

    inset:0;

    pointer-events:none;

    overflow:hidden;

    z-index:0;

}

/* ---------- Layout ---------- */

.page{

    width:min(
        100%,
        var(--container)
    );

    margin:auto;

    padding:

        32px

        24px

        80px;

    position:relative;

    z-index:2;

}

/* ---------- Header ---------- */

header{

    height:var(--header-height);

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ---------- Logo (左上) ---------- */

.logo{

    display: flex;
    align-items: center;

    user-select:none;

}

.logo img {
    height: 150px;
    width: auto;
    display: block;
}

/* ---------- Header Brand (右上 짭툰) ---------- */

.header-brand {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
    user-select: none;
    text-shadow:
        0 0 12px rgba(250, 204, 21, .50),
        0 0 30px rgba(250, 204, 21, .25);
}

/* ---------- Main ---------- */

main{

    display:flex;

    flex-direction:column;

    gap:var(--section-gap);

}

/* ---------- Content Section ---------- */

.glass{

    position:relative;

    overflow:visible;

    background:var(--bg);

    border:1px solid var(--border);

    border-radius:16px;

    padding:28px;

    box-shadow:0 2px 12px rgba(0,0,0,.04);

    transition:

        opacity var(--transition),

        border-color var(--transition);

}

/* Hover */

.glass:hover{

    border-color:rgba(250,204,21,.35);

    box-shadow:0 4px 20px rgba(0,0,0,.06);

}

/* =====================================================
   Hero Section
===================================================== */

.hero{

    text-align:center;

    padding:48px 0 36px;


    border-bottom:1px solid rgba(250,204,21,.12);

}

.hero h1{

    font-size:var(--font-size-title);

    font-weight:800;

    margin-bottom:14px;

    letter-spacing:1px;

    color:var(--text);

    text-shadow:
        0 0 15px rgba(250,204,21,.40),
        0 0 30px rgba(250,204,21,.20);

}

.glass.hero h1 {
    text-shadow: none;
}

.hero p{

    font-size:17px;

    color:var(--text-muted);

    margin-bottom:18px;

}

.hero .hero-badge{

    display:inline-block;

    padding:6px 16px;

    border-radius:20px;

    background:rgba(250,204,21,.15);

    border:1px solid rgba(250,204,21,.30);

    color:#92400e;

    margin-bottom:18px;

    font-weight:600;

    font-size:13px;

    letter-spacing:1px;

    text-transform:uppercase;

}

/* =====================================================
   Latest Domain Card
===================================================== */

#latestDomain{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:90%;

    max-width:100%;

    min-height:56px;

    padding:18px 24px;

    margin:0 auto 28px;

    border-radius:12px;

    background:rgba(250,204,21,.06);

    border:1px solid rgba(250,204,21,.15);

    font-size:20px;

    font-weight:600;

    color:var(--text);

    word-break:break-all;

    transition:all .3s ease;

}

#latestDomain:hover{

    transform:none;

    border-color:rgba(250,204,21,.35);

    background:rgba(250,204,21,.10);

}

/* =====================================================
   Hero Buttons
===================================================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:18px;

    flex-wrap:wrap;

}

/* =====================================================
   Button
===================================================== */

.hero-buttons button{

    position:relative;

    overflow:hidden;

    min-width:180px;

    height:54px;

    border-radius:18px;

    font-size:16px;

    font-weight:700;

    color:#1a1a1a;

    transition:all .28s ease;

}

/* 주 버튼 */

#visitBtn{

    background:

        linear-gradient(

            135deg,

            #facc15,

            #eab308

        );

    box-shadow:

        0 10px 28px rgba(250,204,21,.35);

}

/* 보조 버튼 */

#copyBtn{

    background:

        linear-gradient(

            135deg,

            #f59e0b,

            #d97706

        );

    box-shadow:

        0 10px 28px rgba(245,158,11,.30);

}

/* 네비게이션 버튼 */

#navBtn{

    background: transparent;

    color: var(--text);

    border: 2px solid rgba(250,204,21,.35);

    box-shadow: none;

}

#navBtn:hover{

    background: rgba(250,204,21,.08);

    border-color: rgba(250,204,21,.55);

    color: var(--text);

}

.hero-buttons button:hover{

    transform:

        translateY(-3px);

    filter:brightness(1.05);

}

.hero-buttons button:active{

    transform:

        translateY(1px)

        scale(.98);

}

/* Ripple */

.hero-buttons button::before{

    content:"";

    position:absolute;

    left:50%;

    top:50%;

    width:0;

    height:0;

    border-radius:50%;

    background:

        rgba(250,204,21,.20);

    transform:

        translate(-50%,-50%);

    transition:

        width .45s ease,

        height .45s ease;

}

.hero-buttons button:hover::before{

    width:320px;

    height:320px;

}

/* =====================================================
   Notice Card
===================================================== */

.glass h2{

    margin-bottom:20px;

    padding-bottom:12px;

    font-size:18px;

    font-weight:700;

    color:var(--text);

    border-bottom:2px solid rgba(250,204,21,.20);

}

/* =====================================================
   Notice List
===================================================== */

.notice-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.notice-card:hover {
    background: rgba(250,204,21,.08);
    border-color: rgba(250,204,21,.20);
}

.notice-card.important {
    background: rgba(250,204,21,.10);
    border-color: rgba(250,204,21,.20);
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notice-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.notice-body strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.notice-body span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: .7;
}

/* Skeleton */
.notice-card.skeleton,
.history-card.skeleton {
    opacity: .4;
}

/* =====================================================
   About Section
===================================================== */

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-card {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}

.history-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    padding: 0 0 10px 0;
    margin-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.history-section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #eab308;
    border-radius: 0 3px 3px 0;
}

.history-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    padding: 2px 0 2px 28px;
}

.history-item strong {
    font-weight: 700;
    color: var(--text);
}



/* =====================================================
   Footer
===================================================== */

footer{

    margin-top:48px;

    padding:28px;

    display:block;

    text-align:center;

    border-top:1px solid rgba(250,204,21,.15);

}

footer>div{

    display:none;

}

footer>div a,
footer>div button{

    display:none;

}

footer>div a:hover,
footer>div button:hover{

    display:none;

}

footer p{

    color:var(--text-muted);

    font-size:14px;

}

/* =====================================================
   Loading
===================================================== */

#loading{

    position:fixed;

    inset:0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:28px;

    background:var(--bg);

    z-index:var(--z-loading);

    transition:opacity .45s ease,
               visibility .45s ease;

}

#loading.hide{

    opacity:0;

    visibility:hidden;

}

.loader-logo{

    font-size:42px;

    font-weight:800;

    letter-spacing:4px;

    color:#1a1a1a;

    text-shadow:

        0 0 20px rgba(250,204,21,.6),

        0 0 40px rgba(250,204,21,.4);

}

.loader-bar{

    width:320px;

    max-width:80vw;

    height:8px;

    overflow:hidden;

    border-radius:999px;

    background:rgba(250,204,21,.15);

}

.loader-progress{

    width:0;

    height:100%;

    border-radius:999px;

    background:

        linear-gradient(

            90deg,

            #facc15,

            #f59e0b

        );

}

/* =====================================================
   Toast
===================================================== */

#toast{

    position:fixed;

    left:50%;

    bottom:40px;

    transform:

        translateX(-50%)

        translateY(40px);

    opacity:0;

    padding:14px 24px;

    border-radius:14px;

    background:rgba(255,255,255,.92);

    border:1px solid rgba(250,204,21,.20);

    color:#1a1a1a;

    box-shadow:

        0 15px 40px rgba(0,0,0,.35);

    z-index:var(--z-toast);

    transition:

        opacity .25s ease,

        transform .25s ease;

}

#toast.show{

    opacity:1;

    transform:

        translateX(-50%)

        translateY(0);

}

/* =====================================================
   Status Badge
===================================================== */

.status{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(250,204,21,.12);

    color:#fde047;

    font-size:14px;

    font-weight:600;

}

.status::before{

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:#fcd34d;

    box-shadow:

        0 0 12px rgba(250,204,21,.8);

}

/* =====================================================
   Utilities
===================================================== */

.hidden{

    display:none !important;

}

.center{

    display:flex;

    align-items:center;

    justify-content:center;

}

.mt-16{

    margin-top:16px;

}

.mt-24{

    margin-top:24px;

}

.mt-32{

    margin-top:32px;

}

/* =====================================================
   Scrollbar
===================================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:rgba(0,0,0,.06);
}

::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:rgba(0,0,0,.20);
}

::-webkit-scrollbar-thumb:hover{
    background:rgba(0,0,0,.35);
}

html{
    scrollbar-color:rgba(0,0,0,.20) transparent;
}

/* =====================================================
   Selection
===================================================== */

::selection{

    background:rgba(250,204,21,.35);

    color:#1a1a1a;

}

/* =====================================================
   Focus
===================================================== */

button:focus-visible,
a:focus-visible{

    outline:2px solid #facc15;

    outline-offset:3px;

}