/* =========================
   NEXUS ML - STYLE.CSS
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0d0d0d;
    color:#fff;
}

/* ================= HEADER ================= */

header{
    text-align:center;
    padding:35px 20px;
    background:linear-gradient(135deg,#7d2cff,#1a1a1a);
}

header h1{
    font-size:42px;
    font-weight:700;
}

header p{
    margin:10px 0 20px;
    color:#d8cfff;
}

input{
    width:90%;
    max-width:450px;
    padding:15px;
    border:none;
    border-radius:15px;
    outline:none;
    font-size:16px;
}

/* ================= MENU ================= */

.menu{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:18px;
}

.menu button{
    border:none;
    padding:12px 22px;
    border-radius:30px;
    background:#7d2cff;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
    white-space:nowrap;
}

.menu button:hover{
    background:#a855f7;
    transform:scale(1.05);
}

/* ================= TITLE ================= */

.section-title,
h2{
    margin:25px 20px 15px;
    font-size:32px;
}

/* ================= HERO CARD ================= */

.hero-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    padding:20px;
}

.card{
    background:#1b1b1b;
    border-radius:22px;
    overflow:hidden;
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 25px rgba(125,44,255,.5);
}

.card img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}

.card h3{
    padding:15px 15px 5px;
    font-size:22px;
}

.card p{
    color:#aaa;
    padding:0 15px;
}

.card button{
    margin:18px 15px;
    width:calc(100% - 30px);
    padding:12px;
    border:none;
    border-radius:15px;
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.card button:hover{
    transform:scale(1.04);
}

/* ================= TIER LIST ================= */

.tier-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    padding:20px;
}

.tier-card{
    background:#181818;
    border:2px solid #7d2cff;
    border-radius:22px;
    padding:18px;
    transition:.3s;
}

.tier-card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 20px rgba(125,44,255,.5);
}

.tier-rank{
    font-size:30px;
    font-weight:bold;
    margin-bottom:15px;
}

.splus .tier-rank{
    color:#FFD700;
}

.s .tier-rank{
    color:#c084fc;
}

.tier-hero{
    display:flex;
    align-items:center;
    gap:12px;
    margin:12px 0;
}

.tier-hero img{
    width:55px;
    height:55px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid #7d2cff;
}

.tier-hero span{
    font-size:18px;
}

/* ================= EVENT ================= */

.event-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    padding:20px;
}

.event-card{
    background:#181818;
    border-radius:22px;
    border:2px solid #7d2cff;
    padding:20px;
    text-align:center;
    transition:.3s;
}

.event-card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 20px rgba(125,44,255,.5);
}

.event-icon{
    font-size:48px;
    margin-bottom:12px;
}

.event-card h3{
    margin-bottom:10px;
}

.event-card p{
    color:#aaa;
    margin-bottom:15px;
}

.event-card button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:12px;
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    color:white;
    font-weight:bold;
    cursor:pointer;
}

.event-banner{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:15px;
}

.event-timer{
    font-size:20px;
    font-weight:bold;
    color:#a855f7;
    margin-bottom:15px;
}
/* ================= HERO PAGE ================= */

.hero-page{
    max-width:700px;
    margin:auto;
    padding:35px 20px;
    text-align:center;
}

.hero-img{
    width:320px;
    max-width:100%;
    border-radius:28px;
    box-shadow:0 0 30px rgba(125,44,255,.6);
}

.hero-page h1{
    font-size:60px;
    margin-top:20px;
}

.role{
    color:#aaa;
    font-size:20px;
    margin:10px 0 30px;
}

.build-box{
    background:#1b1b1b;
    border:2px solid #7d2cff;
    border-radius:25px;
    padding:30px;
    text-align:left;
}

.build-box h2{
    margin:0 0 20px;
}

.build-box ul{
    list-style:none;
}

.build-box li{
    display:flex;
    align-items:center;
    gap:18px;
    margin:18px 0;
    font-size:22px;
}

.item-icon{
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
}

.back-btn{
    display:inline-block;
    margin-top:35px;
    padding:16px 40px;
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    color:white;
    text-decoration:none;
    border-radius:18px;
    font-size:20px;
    font-weight:bold;
    transition:.3s;
}

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

/* ================= FOOTER ================= */

footer{
    text-align:center;
    padding:30px;
    color:#888;
}
#filterRole{
    width:90%;
    max-width:450px;
    padding:15px;
    margin-top:10px;
    border:none;
    border-radius:12px;
    font-size:16px;
}
/* ===== Counter Hero ===== */

.counter-box{
    margin-top:30px;
    padding:25px;
    background:#1b1b1b;
    border:2px solid #ff4d4d;
    border-radius:20px;
    text-align:center;
}

.counter-box h2{
    color:#ff5555;
    margin-bottom:20px;
}

.counter-list{
    display:flex;
    justify-content:center;
    gap:25px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.counter-item{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.counter-item img{
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #ff4d4d;
}

.counter-item p{
    margin-top:10px;
    color:white;
    font-weight:bold;
}

.counter-text{
    color:#ccc;
    font-size:15px;
    line-height:1.6;
    text-align:left;
    word-wrap:break-word;
    overflow-wrap:break-word;
}

.counter-text p{
    margin-bottom:12px;
}

.counter-text p:last-child{
    margin-bottom:0;
}
/* ================= CAROUSEL ================= */

.carousel{
    position:relative;
    max-width:700px;
    margin:20px auto;
    overflow:hidden;
    border-radius:22px;
    box-shadow:0 0 25px rgba(125,44,255,.4);
}

.carousel-track{
    display:flex;
    transition:transform .6s ease;
}

.carousel-slide{
    min-width:100%;
    position:relative;
}

.carousel-slide img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.carousel-caption{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:25px 18px 15px;
    background:linear-gradient(transparent, rgba(0,0,0,.85));
    color:#fff;
    font-size:22px;
    font-weight:bold;
}

.carousel-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    padding:14px;
    background:#1b1b1b;
}

.dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#555;
    cursor:pointer;
    transition:.3s;
}

.dot.active{
    background:#7d2cff;
    width:22px;
    border-radius:5px;
}
/* ================= CHAT AI WIDGET ================= */

.chat-toggle{
    position:fixed;
    bottom:25px;
    right:25px;
    width:60px;
    height:60px;
    background:linear-gradient(135deg,#7d2cff,#a855f7);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    cursor:pointer;
    box-shadow:0 0 20px rgba(125,44,255,.6);
    z-index:999;
}

.chat-box{
    position:fixed;
    bottom:100px;
    right:25px;
    width:320px;
    max-width:90vw;
    height:420px;
    background:#1b1b1b;
    border:2px solid #7d2cff;
    border-radius:20px;
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:999;
    box-shadow:0 0 30px rgba(125,44,255,.5);
}

.chat-box.open{
    display:flex;
}

.chat-header{
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    padding:14px 16px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.chat-close{
    cursor:pointer;
}

.chat-messages{
    flex:1;
    overflow-y:auto;
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.chat-msg{
    padding:10px 14px;
    border-radius:14px;
    font-size:14px;
    line-height:1.5;
    max-width:85%;
    word-wrap:break-word;
}

.chat-msg-ai{
    background:#2a2a2a;
    align-self:flex-start;
    border-bottom-left-radius:4px;
}

.chat-msg-user{
    background:#7d2cff;
    align-self:flex-end;
    border-bottom-right-radius:4px;
}

.chat-input-area{
    display:flex;
    padding:12px;
    gap:8px;
    border-top:1px solid #333;
}

.chat-input-area input{
    flex:1;
    padding:10px;
    border-radius:12px;
    font-size:14px;
    width:auto;
}

.chat-input-area button{
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    color:white;
    border:none;
    border-radius:12px;
    padding:0 16px;
    font-size:18px;
    cursor:pointer;
.thinking-dots{
    display:inline-flex;
    margin-left:2px;
}

.thinking-dots span{
    animation: dotBlink 1.4s infinite;
    opacity:0;
}

.thinking-dots span:nth-child(1){
    animation-delay:0s;
}

.thinking-dots span:nth-child(2){
    animation-delay:0.2s;
}

.thinking-dots span:nth-child(3){
    animation-delay:0.4s;
}

@keyframes dotBlink{
    0%{ opacity:0; }
    25%{ opacity:1; }
    50%{ opacity:0; }
    100%{ opacity:0; }
}
/* ================= THINKING DOTS ================= */

.thinking-dots{
    display:inline-flex;
    margin-left:2px;
}

.thinking-dots span{
    animation: dotBlink 1.4s infinite;
    opacity:0;
}

.thinking-dots span:nth-child(1){
    animation-delay:0s;
}

.thinking-dots span:nth-child(2){
    animation-delay:0.2s;
}

.thinking-dots span:nth-child(3){
    animation-delay:0.4s;
}

@keyframes dotBlink{
    0%{ opacity:0; }
    25%{ opacity:1; }
    50%{ opacity:0; }
    100%{ opacity:0; }
}

/* ================= QUICK QUESTIONS ================= */

.quick-questions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:12px;
    border-top:1px solid #333;
    background:#161616;
}

.quick-questions button{
    background:rgba(125,44,255,0.15);
    border:1px solid rgba(125,44,255,0.5);
    color:#d8cfff;
    padding:8px 12px;
    border-radius:16px;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
    cursor:pointer;
    transition:.2s;
}

.quick-questions button:hover,
.quick-questions button:active{
    background:linear-gradient(90deg,#7d2cff,#a855f7);
    border-color:transparent;
    color:#fff;
}