html, body{
    height:100%;
}

body{
    margin:0;
    font-family:Arial;
    color:white;

    background-image: url("../images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display:flex;
    flex-direction:column;
}

/* MAIN CONTENT WRAPPER */
.wrap{
    max-width:1100px;
    margin:auto;
    padding:20px;

    flex:1; /* 🔥 IMPORTANT - pushes footer down */
}

.title-box{
    display:flex;
    align-items:center;
    gap:15px;

    padding:15px 20px;

    background:#17171c8c;
    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    box-shadow:0 4px 25px rgba(0,0,0,.3);
}

.logo-img{
    width:65px;
    height:65px;
    object-fit:contain;
}

.header h1{
    font-size:28px;
    margin:0;
    font-weight:700;
}

/* GUIDE IMAGE */
.guide-img{
    width:100%;
    max-width:500px;
    height:auto;
    margin-top:15px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.1);
}

/* INPUT BAR */
.input-bar{
    display:flex;
    gap:10px;
    margin:15px 0;
    flex-wrap:wrap;
}

.input-bar input{
    flex:1;
    min-width:200px;
    padding:12px 15px;
    border-radius:12px;
    border:1px solid #334155;
    background:#383c42;
    color:white;
    outline:none;
}

/* BUTTONS */
.btn{
    padding:10px 14px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:#334155;
    color:white;
    transition:0.2s;
}

.btn:hover{
    transform:translateY(-2px);
}

.primary{
    background:#383c42;
    color:white;
}

.danger{
    background:#3385d6;
    color:black;
}

.analyze{
    background:#ffffff;
    color:black;
    font-weight:bold;
}

/* TAGS */
.tabs-info{
    margin:10px 0;
}

.tag{
    display:inline-block;
    padding:5px 10px;
    background:#334155;
    border-radius:20px;
    font-size:12px;
    margin-right:5px;
}

.tag.red{
    background:#ef4444;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:14px;
    margin-top:15px;
}

/* CARD */
.card{
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: 0.25s ease;
    color:white;
    display:flex;
    flex-direction:column;
    align-items:stretch;
}

.card img{
    margin:0 auto 6px;
}

.card h4{
    margin:4px 0 0;
    min-height:20px;
}

.card:hover{
    transform: translateY(-3px);
}

/* HIDDEN */
.hidden{
    display:none;
}

/* STATS */
#stats{
    color:#cbd5e1;
}

/* TAG BUTTONS */
.tag-btn{
    padding:6px 14px;
    border:none;
    border-radius:20px;
    cursor:pointer;
    margin-right:5px;
    background:#334155;
    color:white;
    transition:0.2s;
}

.tag-btn:hover{
    transform:scale(1.05);
}

.tag-btn.active{
    background:#3385d6;
    color:black;
}

/* ===================== */
/* FOOTER (FIXED BOTTOM) */
/* ===================== */

.footer{
    margin-top:auto; /* 🔥 KEY FIX */
    padding:20px;
}

.footer-box{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;

    padding:20px;

    background:rgba(23,23,28,.55);
    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    box-shadow:0 4px 25px rgba(0,0,0,.3);

    color:white;
}

/* left side */
.footer-left h3{
    margin:0;
    font-size:18px;
}

.footer-left p{
    margin:5px 0 0;
    font-size:13px;
    color:#cbd5e1;
}

/* links */
.footer-links{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.footer-links a{
    color:white;
    text-decoration:none;
    font-size:13px;
    opacity:0.8;
}

.footer-links a:hover{
    opacity:1;
}

/* right side */
.footer-right{
    text-align:right;
    font-size:12px;
    color:#cbd5e1;
}

/* MOBILE */
@media(max-width:700px){
    .footer-box{
        flex-direction:column;
        text-align:center;
        align-items:center;
    }

    .footer-right{
        text-align:center;
    }
}

.copyright{
    display:block;
    margin-top:8px;
    font-size:11px;
    color:#94a3b8;
}



/* =========================
   GUIDE PAGE + INFO BOXES
========================= */

.guide-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px){
    .guide-boxes {
        grid-template-columns: 1fr;
    }
}

.info-box {
    background: #17171c8c;   /* solid old color */

    padding: 18px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 10px 20px rgba(0,0,0,0.25);

    transition: 0.2s ease;

    height: 380px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.info-box p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-4px);
}

.info-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.info-box p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

/* =========================
   BUTTON (SAFE - UNIQUE NAME)
========================= */

.guide-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #38bdf8;
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s ease;
}

.guide-btn:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

/* =========================
   GUIDE IMAGE (optional)
========================= */

.guide-img {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.box-img {
    width: 100%;
    max-width: 420px;
    height: 180px;
    object-fit: cover;

    display: block;
    margin: 10px auto;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

/* =========================
   NAVBAR (GLASS STYLE)
========================= */

.navbar{
    position: sticky;
    top: 0;
    z-index: 1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    max-width:1200px;
    margin:auto;

    padding:22px 0; /* 🔥 navbar eka poddak pallehata enna meka */
}

/* LEFT */
.nav-left{
    display:flex;
    align-items:center;
    gap:16px;
}

/* LOGO */
.nav-logo{
    width:70px;
    height:70px;
    object-fit:contain;
}

/* TITLE */
.nav-title{
    font-size:28px;
    font-weight:900;
    color:white;
    letter-spacing:0.5px;
}

/* RIGHT LINKS */
.nav-right{
    display:flex;
    align-items:center;
    gap:28px;
}

.nav-right a{
    color:white;
    text-decoration:none;
    font-size:17px;
    font-weight:600;
    opacity:0.9;
    transition:0.2s;
    position:relative;
}

.nav-right a:hover{
    opacity:1;
    transform:translateY(-2px);
}

/* underline hover */
.nav-right a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:white;
    transition:0.2s;
}

.nav-right a:hover::after{
    width:100%;
}

/* MOBILE */
@media(max-width:700px){
    .navbar{
        padding:18px 16px;
    }

    .nav-logo{
        width:55px;
        height:55px;
    }

    .nav-title{
        font-size:20px;
    }

    .nav-right{
        gap:14px;
    }

    .nav-right a{
        font-size:14px;
    }
}

.settings-link {
  color: #3385d6;
  text-decoration: none;
  transition: 0.2s;
}

.settings-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   BLOG - LISTING GRID
========================= */

.search-row{
    margin:20px 0 10px;
}

.search-row #blogSearch{
    width:100%;
    max-width:320px;
    padding:10px 16px;
    border:none;
    text-align:left;
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    column-gap:20px;
    row-gap:50px;
    margin-top:20px;
}

@media(max-width:900px){
    .blog-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:600px){
    .blog-grid{
        grid-template-columns:1fr;
    }
}

.blog-card{
    position:relative;
    height:100%;
}

.blog-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    margin:60px 0 10px;
}

.page-num{
    border:none;
    background:none;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    color:#94a3b8;
    padding:0;
    transition:0.2s ease;
}

.page-num:hover{
    color:white;
}

.page-num.active{
    color:#3385d6;
}

.page-arrow{
    border:none;
    background:none;
    cursor:pointer;
    font-size:16px;
    font-weight:700;
    color:#94a3b8;
    padding:0;
    transition:0.2s ease;
}

.page-arrow:hover{
    color:white;
}

.page-arrow:disabled{
    opacity:0.3;
    cursor:default;
}

.page-arrow:disabled:hover{
    color:#94a3b8;
}

.blog-category{
    display:inline-block;
    margin-bottom:10px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    padding:4px 12px;
    background:#3385d6;
    color:#000;
    font-weight:bold;
    cursor:default;
}

.blog-date{
    font-size:12px;
    color:#94a3b8;
    margin:4px 0 10px;
}

.blog-card h3{
    margin:10px 0 6px;
}

/* =========================
   BLOG - SINGLE POST
========================= */

.back-link{
    display:inline-block;
    margin:20px 0;
    color:#3385d6;
    text-decoration:none;
    font-weight:600;
    transition:0.2s;
}

.back-link:hover{
    color:#ffffff;
}

.post-title{
    font-size:32px;
    margin:10px 0 0;
    line-height:1.3;
}

.post-cover{
    max-width:100%;
    width:100%;
    max-height:420px;
    object-fit:cover;
}

.post-content{
    max-width:800px;
    margin-top:20px;
    line-height:1.8;
    font-size:16px;
    color:#e5e7eb;
}

.post-content h2{
    margin-top:32px;
    margin-bottom:12px;
    font-size:22px;
    color:#ffffff;
}

.post-content p{
    margin-bottom:16px;
}

.post-content ul,
.post-content ol{
    margin:0 0 16px 20px;
}

.post-content li{
    margin-bottom:8px;
}

.post-content img{
    max-width:100%;
    border-radius:12px;
    margin:16px 0;
}

.post-content a{
    color:#3385d6;
}

.post-content a:hover{
    color:#ffffff;
}

@media(max-width:700px){
    .post-title{
        font-size:24px;
    }
}

.buff-badge{
    font-size:12px;
    padding:3px 9px;
    margin-left:8px;
    border-radius:20px;
    background:#2ecc71;
    color:white;
    font-weight:700;
    letter-spacing:0.5px;
    vertical-align:middle;
}

.nerf-badge{
    font-size:12px;
    padding:3px 9px;
    margin-left:8px;
    border-radius:20px;
    background:#e74c3c;
    color:white;
    font-weight:700;
    letter-spacing:0.5px;
    vertical-align:middle;
}

/* =========================
   EQUIPMENT TRACKER
========================= */

.equip-bar{
    margin-top:10px;
    height:8px;
    border-radius:20px;
    background:rgba(255,255,255,0.12);
    overflow:hidden;
}

.equip-bar-fill{
    height:100%;
    background:#3385d6;
    border-radius:20px;
    transition:0.3s ease;
}

.equip-bar-fill.epic{
    background:#a259e6;
}

.rarity-badge-row{
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:4px 0;
}

.rarity-badge{
    font-size:10px;
    padding:2px 7px;
    border-radius:20px;
    font-weight:700;
    letter-spacing:0.3px;
    vertical-align:middle;
}

.rarity-badge.common{
    background:#3385d6;
    color:#ffffff;
}

.rarity-badge.epic{
    background:#a259e6;
    color:#ffffff;
}