:root{
--primary:#1dbf8b;
--primary-dark:#16a076;

--font-sans:'Inter',sans-serif;
--font-serif:'Amiri',serif;
}

*{
box-sizing:border-box;
margin:0;
padding:0;
}

body{
font-family:var(--font-sans);

background:
linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.55)),
url('assets/islamic-bg.png') no-repeat center center fixed;

background-size:cover;

color:white;
min-height:100vh;
}


/* ---------- NAV ---------- */

.top-nav{
position:absolute;
top:20px;
left:30px;
z-index:10;
}

.top-nav a{
color:#d1fae5;
text-decoration:none;
font-size:14px;
opacity:.9;
}

.top-nav a:hover{
opacity:1;
}


/* ---------- HERO ---------- */

.hero{
text-align:center;
padding-top:120px;
padding-bottom:40px;

display:flex;
flex-direction:column;
align-items:center;
}

.hero-content{
max-width:720px;
width:100%;
padding:20px;
}

.hero-header{
margin-bottom:24px;
}

h1{
font-size:48px;
font-weight:600;
}

.subtitle{
margin-top:8px;
font-size:16px;
}

.description{
margin-top:10px;
opacity:.9;
}

.powered-by{
margin-top:10px;
font-size:13px;
opacity:.75;
}


/* ---------- SEARCH ---------- */

.search-section{
max-width:650px;
margin:auto;
}

.search-box{
margin-top:28px;

display:flex;
align-items:center;

border-radius:30px;

background:rgba(255,255,255,0.12);
border:1px solid rgba(255,255,255,0.25);

backdrop-filter:blur(10px);

padding:6px;
width:100%;
}

.search-box input{
flex:1;

border:none;
outline:none;

padding:14px 18px;

background:transparent;
color:white;

font-size:17px;
}

.search-box input::placeholder{
color:rgba(255,255,255,.65);
}

.search-btn{
width:42px;
height:42px;

border-radius:50%;
border:none;

background:#19c37d;
color:white;

cursor:pointer;
font-size:18px;

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

transition:.2s ease;
}

.search-btn:hover{
background:#16a076;
}


/* ---------- SUGGESTIONS ---------- */

.suggestions{
margin-top:18px;

display:flex;
flex-wrap:wrap;
justify-content:center;

gap:10px;
}

.suggestion-card{
padding:10px 16px;

border-radius:20px;

background:rgba(255,255,255,.15);
border:1px solid rgba(255,255,255,.25);

cursor:pointer;
font-size:14px;

transition:.2s ease;
}

.suggestion-card:hover{
background:rgba(255,255,255,.25);
}


/* ---------- LOADING SCREEN ---------- */

#loading-indicator{
position:fixed;

top:0;
left:0;

width:100%;
height:100%;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

background:rgba(0,0,0,.55);

z-index:999;
}

#loading-indicator p{
margin-top:12px;
font-size:16px;
color:white;
opacity:.9;
}

.spinner{
width:44px;
height:44px;

border:2px solid rgba(255,255,255,.1);
border-top-color:white;

border-radius:50%;

animation:spin 1s linear infinite;
}

@keyframes spin{
to{transform:rotate(360deg);}
}

.hidden{
display:none!important;
}


/* ---------- RESULTS ---------- */

.results-container{
max-width:1000px;

margin:40px auto;
padding:20px;

display:flex;
flex-direction:column;

gap:24px;
}

.response-card{
background:rgba(255,255,255,.08);

backdrop-filter:blur(12px);

border-radius:16px;

padding:30px;
}

.answer-text{
white-space:pre-wrap;
}


/* ---------- REFERENCES ---------- */

.references-list{
display:flex;
flex-direction:column;
gap:16px;
}

.reference-card{
background:rgba(255,255,255,.06);

border-radius:14px;

overflow:hidden;

cursor:pointer;
}

.reference-header{
padding:18px 24px;

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

.reference-body{
max-height:0;

overflow:hidden;

transition:max-height .4s ease;
}

.reference-body.expanded{
max-height:2000px;
}

.reference-content-inner{
padding:24px;
}

.verse-arabic{
font-family:var(--font-serif);

font-size:26px;

line-height:2.2;

text-align:center;

direction:rtl;
}

.verse-translation{
font-size:16px;
opacity:.9;
}

.tafsir-section{
margin-top:12px;

padding-top:16px;

border-top:1px dashed rgba(255,255,255,.15);

font-size:14px;
opacity:.75;
}


/* ---------- FOOTER ---------- */

.main-footer{
margin-top:80px;

padding:30px 0;

text-align:center;

font-size:.85rem;

opacity:.6;
}

.disclaimer{
margin-top:10px;

font-size:11px;

max-width:700px;

margin-left:auto;
margin-right:auto;
}


/* ---------- MOBILE ---------- */

@media(max-width:768px){

h1{
font-size:40px;
}

.search-section{
width:95%;
}

.top-nav{
left:16px;
}

}