/*
Theme Name: GadgetKun Horror
Version: 1.0
*/

:root{
    --bg:#07090d;
    --card:#12151c;
    --text:#ffffff;
    --muted:#999;
    --accent:#8b0000;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:sans-serif;
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at 20% 20%, rgba(139,0,0,0.18), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(255,0,0,0.08), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.03), transparent 20%);
    animation:bgMove 12s ease-in-out infinite alternate;
    pointer-events:none;
    z-index:-1;
}

@keyframes bgMove{
    from{
        transform:scale(1) translateY(0px);
    }
    to{
        transform:scale(1.1) translateY(-20px);
    }
}

.site-header{
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(14px);
    background:rgba(5,5,8,0.7);
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.header-inner{
    max-width:1200px;
    margin:auto;
    padding:18px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:white;
    text-decoration:none;
    font-size:24px;
    font-weight:800;
    letter-spacing:0.08em;
}

.logo span{
    color:var(--accent);
}

.nav{
    display:flex;
    gap:26px;
}

.nav a{
    color:#aaa;
    text-decoration:none;
    transition:0.3s;
}

.nav a:hover{
    color:white;
}

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:40px;
    background:
    radial-gradient(circle at top, rgba(120,0,0,0.3), transparent 40%),
    linear-gradient(#050507,#090b10);
}

.hero-inner{
    max-width:800px;
}

.badge{
    display:inline-block;
    padding:8px 14px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:999px;
    color:#ffb4b4;
    margin-bottom:20px;
    background:rgba(255,255,255,0.05);
}

.hero h1{
    font-size:72px;
    line-height:1.1;
    margin:0 0 24px;
    animation:fadeUp 1.2s ease;
}

.hero p{
    color:#aaa;
    line-height:1.9;
    font-size:18px;
    animation:fadeUp 1.8s ease;
}

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

.buttons{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 22px;
    border-radius:14px;
    background:var(--accent);
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 30px rgba(255,0,0,0.35);
}

.btn.sub{
    background:#1a1d24;
}

.post-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:24px;
}

.post-card{
    background:#12151c;
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    color:white;
    border:1px solid rgba(255,255,255,0.06);
    transition:0.35s;
}

.post-card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow:0 0 30px rgba(255,0,0,0.15);
}

.post-card-image{
    width:100%;
    height:90px;
    overflow:hidden;
    background:#111;
}
.post-card-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}
.post-card-content{
    padding:16px;
}
.category{
    color:#ff8d8d;
    font-size:13px;
    margin-bottom:12px;
}

.post-card h2{
    font-size:18px;
    line-height:1.5;
    margin-bottom:10px;
}

.post-card p{
    color:#999;
    line-height:1.7;
    font-size:14px;
}
.single-wrap{
    max-width:820px;
    margin:auto;
    padding:60px 20px;
}

.single-title{
    font-size:42px;
    line-height:1.4;
    margin-bottom:30px;
}

.single-content{
    font-size:18px;
    line-height:2.2;
    color:#e5e5e5;
    letter-spacing:0.03em;
}

.submit-box{
    margin-top:70px;
    padding:30px;
    border-radius:22px;
    background:#12151c;
    border:1px solid rgba(255,255,255,0.08);
}

.site-footer{
    margin-top:80px;
    border-top:1px solid rgba(255,255,255,0.06);
    background:#050507;
}

.footer-inner{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
    text-align:center;
}

.footer-logo{
    font-size:24px;
    font-weight:800;
    letter-spacing:0.08em;
    margin-bottom:12px;
}

.footer-logo span{
    color:var(--accent);
}

.footer-text{
    color:#999;
    margin-bottom:20px;
}

.footer-copy{
    color:#666;
    font-size:13px;
}

@media(max-width:768px){

    .hero h1{
        font-size:46px;
    }

    .nav{
        display:none;
    }

}
.single-article{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:28px;
    padding:40px;
    backdrop-filter:blur(10px);
}

.single-thumbnail{
    width:100%;
    height:420px;
    overflow:hidden;
    border-radius:22px;
    margin-bottom:30px;
}

.single-thumbnail img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.single-date{
    color:#777;
    margin-bottom:40px;
    font-size:14px;
}

.single-content{
    font-size:18px;
    line-height:2.4;
    color:#f1f1f1;
}

.single-content p{
    margin-bottom:32px;
}

.back-link{
    display:inline-block;
    margin-bottom:30px;
    color:#ff8d8d;
    text-decoration:none;
}
.ranking-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.ranking-item{
    display:flex;
    align-items:center;
    gap:24px;
    padding:24px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:22px;
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.ranking-item:hover{
    transform:translateX(8px);
    border-color:rgba(255,0,0,0.25);
    box-shadow:0 0 25px rgba(255,0,0,0.12);
}

.ranking-number{
    font-size:34px;
    font-weight:900;
    color:#8b0000;
    min-width:60px;
}

.ranking-item h3{
    margin:6px 0 0;
    font-size:22px;
    line-height:1.5;
}
.search-form{
    display:flex;
    gap:8px;
}

.search-form input{
    background:#111;
    color:white;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:999px;
    padding:10px 14px;
    outline:none;
}

.search-form button{
    background:#8b0000;
    color:white;
    border:none;
    border-radius:999px;
    padding:10px 16px;
    cursor:pointer;
}

.search-form button:hover{
    background:#b00000;
}
.ad-box{
    max-width:100%;
    min-height:120px;
    margin:50px 0;
    border:1px dashed rgba(255,255,255,0.15);
    border-radius:18px;
    background:rgba(255,255,255,0.03);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
    font-size:14px;
}
.category-box{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:24px;
    padding:26px;
}

.category-box h3{
    font-size:26px;
    margin-top:0;
    color:#ff8d8d;
}

.category-post-link{
    display:block;
    color:white;
    text-decoration:none;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.06);
    line-height:1.6;
}

.category-post-link:hover{
    color:#ff8d8d;
}
.youtube-box{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    border-radius:28px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 0 40px rgba(255,0,0,0.12);
    background:#111;
}

.youtube-box iframe{
    width:100%;
    height:100%;
}
.next-prev-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:70px;
}

.next-prev-item a{
    display:block;
    padding:24px;
    border-radius:22px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.next-prev-item a:hover{
    transform:translateY(-4px);
    border-color:rgba(255,0,0,0.25);
    box-shadow:0 0 25px rgba(255,0,0,0.12);
}

@media(max-width:768px){

    .next-prev-wrap{
        grid-template-columns:1fr;
    }

}
.tag-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:40px;
}

.tag-wrap a{
    display:inline-block;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    color:#ccc;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
}

.tag-wrap a:hover{
    background:#8b0000;
    color:white;
}
.category-real{
    color:#ff5a5a;
}

.category-hitokowa{
    color:#c084fc;
}

.category-mystery{
    color:#60a5fa;
}
.fade-in{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade-in.show{
    opacity:1;
    transform:translateY(0);
}
body::after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:10;
    z-index:9999;

    background-image:
    url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}
.red-glow{
    position:fixed;
    width:600px;
    height:600px;
    background:radial-gradient(circle, rgba(139,0,0,0.22), transparent 70%);
    top:-200px;
    right:-200px;
    z-index:-2;
    animation:redPulse 6s ease-in-out infinite;
    pointer-events:none;
}

@keyframes redPulse{

    0%{
        transform:scale(1);
        opacity:0.45;
    }

    50%{
        transform:scale(1.15);
        opacity:0.7;
    }

    100%{
        transform:scale(1);
        opacity:0.45;
    }

}
.reading-bar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:3px;
    background:linear-gradient(90deg,#8b0000,#ff3b3b);
    z-index:99999;
    box-shadow:0 0 12px rgba(255,0,0,0.45);
}