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;
}

.input-bar input{
    flex:1;
    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;
}

/* 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;
}

.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;
}

.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-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.box-img {
    width: 100%;
    max-width: 420px;

    display: block;
    margin: 10px auto;

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

/* =========================
   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;
}