/* ===== BODY ===== */
body{
margin:0;
font-family:"Segoe UI",sans-serif;
background:#f8fafc;
min-height:100vh;
}

/* ===== CONTAINER ===== */
.container{
max-width:1200px;
margin:auto;
padding:40px 20px;
}

/* ===== TOP BAR ===== */
.top-bar{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:10px;
}

/* ===== TITLE ===== */
.section-title{
font-size:28px;
font-weight:800;
background:linear-gradient(135deg,#2563eb,#9333ea);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

/* ===== BADGE ===== */
.badge{
background:#111827;
color:#fff;
padding:7px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
}

/* ===== GRID ===== */
.paper-grid{
display:grid;
grid-template-columns:repeat(3, 350px); 
justify-content:center; 
gap:20px;
margin-top:25px;
}


/* ===== CARD ===== */
.paper-card{
background:#fff;
border-radius:14px;
padding:18px;
box-shadow:0 8px 25px rgba(0,0,0,0.06);
transition:.3s;
position:relative;
display:flex;
flex-direction:column;
justify-content:space-between;
overflow:hidden;
border:1px solid #e5e7eb;
}

/* LEFT COLOR STRIP */
.paper-card::before{
content:"";
position:absolute;
left:0;
top:0;
bottom:0;
width:5px;
background:linear-gradient(#3b82f6,#9333ea);
border-radius:14px 0 0 14px;
}

.paper-card:hover{
transform:translateY(-5px);
box-shadow:0 15px 35px rgba(0,0,0,0.1);
}

/* ===== HEADER ===== */
.paper-header{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:10px;
margin-bottom:10px;
}

.paper-header h3{
font-size:17px;
font-weight:800;
color:#111827;
margin:0;
line-height:1.3;

/* prevent overflow */
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* ===== TYPE BADGE ===== */
.paper-type{
background:#eef2ff;
color:#4338ca;
font-size:12px;
padding:6px 10px;
border-radius:20px;
font-weight:700;
white-space:nowrap;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

/* ===== INFO ===== */
.paper-info{
margin-top:12px;
display:grid;
grid-template-columns:repeat(2,1fr);
gap:8px;
}

.paper-info p{
font-size:13px;
color:#6b7280;
margin:0;
background:#f9fafb;
padding:7px 8px;
border-radius:6px;
border:1px solid #f1f5f9;
font-weight:500;
transition:0.2s;
}

.paper-info p:hover{
background:#eef2ff;
transform:translateY(-1px);
}

.paper-info strong{
color:#111827;
font-weight:600;
}

/* ===== ACTIONS ===== */
.paper-actions{
margin-top:15px;
display:flex;
justify-content:space-between;
align-items:center;
}

/* ===== ACTIONS CONTAINER ===== */
.paper-actions{
margin-top:15px;
display:flex;
gap:10px;
}

/* COMMON BUTTON STYLE */
.paper-actions button,
.paper-actions a{
flex:1;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
padding:9px 10px;
border-radius:8px;
font-size:13px;
font-weight:600;
text-decoration:none;
cursor:pointer;
transition:all 0.25s ease;
}

/* ===== VIEW BUTTON ===== */
.view-btn{
background:#eef2ff;
color:#3730a3;
border:1px solid #c7d2fe;
}

.view-btn:hover{
background:#4338ca;
color:#fff;
transform:translateY(-2px);
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn{
background:#10b981;
color:#fff;
border:1px solid #10b981;
}

.download-btn:hover{
background:#059669;
transform:translateY(-2px);
}

/* ===== CLICK EFFECT ===== */
.paper-actions button:active,
.paper-actions a:active{
transform:scale(0.96);
}

/* ===== EMPTY ===== */
.paper-grid p{
font-size:15px;
display: flex;
justify-content: space-between;
color:#6b7280;
grid-column:1/-1;
}

/* ===== BACK BUTTON ===== */
.back i {
display:inline-flex;
align-items:center;
gap:6px;
padding:10px 14px;
border-radius:8px;
background:#eef2f7;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.back i:hover {
background:#e2e8f0;
}


/* ===== TABLET (≤ 992px) ===== */
@media (max-width:992px){

.container{
padding:25px 15px;
}

.top-bar{
justify-content:space-between;
}

.paper-grid{
grid-template-columns:repeat(2, 400px);
justify-content:center;
gap:15px;
}

.paper-card{
padding:10px;
}

.paper-header h3{
font-size:15px;
font-weight:600;
}

}


/* ===== MOBILE (≤ 600px) ===== */
@media (max-width:600px){

.section-title{
font-size:20px;
text-align:center;
width:100%;
}

.top-bar{
flex-direction:column;
align-items:center;
gap:8px;
}

.container{
padding:18px 10px;
}

.paper-grid{
grid-template-columns:repeat(2, 1fr);
gap:12px;
}

.paper-card{
padding:12px;
border-radius:10px;
}

.paper-header h3{
font-size:13px;
line-height:1.2;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

.paper-info p{
font-size:11px;
}

.paper-actions{
flex-direction:column;
gap:6px;
}

.paper-actions button,
.paper-actions a{
width:100%;
font-size:11px;
padding:7px;
}

}

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


/* 
* - Searc bar css
 */
 
/* ===== SEARCH BAR ===== */

.search-box{
  margin:25px auto;
  display:flex;
  justify-content:center;
  align-items:center;
  animation:fadeSlide 0.6s ease;
}

.search-box input{
  width:60%;
  max-width:500px;
  padding:15px 18px;
  border-radius:40px;
  border:1px solid #d1d5db;
  outline:none;
  font-size:14px;
  font-weight:500;
  letter-spacing:0.5px;

  background:rgba(255,255,255,0.9);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08),
    inset 0 0 0 rgba(0,0,0,0);

  transition:all 0.35s ease;
}

/* Placeholder */
.search-box input::placeholder{
  color:#9ca3af;
  font-weight:500;
}

/* Focus animation */
.search-box input:focus{

  border-color:#2563eb;

  box-shadow:
    0 10px 25px rgba(37,99,235,0.25),
    0 0 15px rgba(59,130,246,0.25);

  transform:scale(1.03);
}

/* Hover effect */
.search-box input:hover{
  box-shadow:
    0 10px 30px rgba(0,0,0,0.15),
    0 0 10px rgba(59,130,246,0.2);
}

/* Small screen */
@media (max-width:600px){

  .search-box input{
    width:90%;
    font-size:13px;
    padding:10px 15px;
  }

}



/* ===== LOADER ===== */
#loader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  z-index:9999;
  flex-direction:column;
}

/* spinner */
.loader-circle{
  width:50px;
  height:50px;
  border:5px solid #e5e7eb;
  border-top:5px solid #2563eb;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* loading text */
.loader-text{
  color:white;
  font-weight:600;
}