/* =========================================
   RESET
========================================= */

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

:root{

  --green:#2E7D5B;
  --green-light:#4CAF7A;

  --blue:#4F7CFF;
  --orange:#F59E0B;
  --red:#EF4444;

  --bg:#F5F8F7;
  --card:#FFFFFF;

  --text:#1F2A2E;
  --muted:#6B7280;

  --border:#E5E7EB;

}

body{

  font-family:'Inter',sans-serif;

  background:var(--bg);

  color:var(--text);

}

/* =========================================
   PAGE
========================================= */

.downloads-page{

  max-width:1400px;

  margin:auto;

  padding:40px;

}

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

.downloads-header{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:40px;

}

.eyebrow{

  color:var(--green);

  font-size:13px;

  font-weight:800;

  text-transform:uppercase;

  letter-spacing:1px;

  margin-bottom:8px;

}

.downloads-header h1{

  font-size:52px;

  margin-bottom:8px;

}

.downloads-header span{

  color:var(--muted);

}

.back-btn{

  text-decoration:none;

  background:var(--green);

  color:#fff;

  padding:14px 22px;

  border-radius:14px;

  font-weight:700;

}

/* =========================================
   STATS
========================================= */

.download-stats{

  display:grid;

  grid-template-columns:repeat(4,1fr);

  gap:20px;

  margin-bottom:40px;

}

.stat-card{

  background:#fff;

  border-radius:24px;

  padding:28px;

  text-align:center;

  border:1px solid var(--border);

  box-shadow:
  0 10px 30px rgba(0,0,0,.05);

}

.stat-card h2{

  font-size:42px;

  color:var(--green);

  margin-bottom:10px;

}

.stat-card p{

  color:var(--muted);

}

/* =========================================
   FILTER
========================================= */

.filter-section{

  display:flex;

  justify-content:space-between;

  align-items:center;

  gap:20px;

  margin-bottom:40px;

}

.filter-section input{

  flex:1;

  height:58px;

  border:none;

  border-radius:16px;

  background:#fff;

  border:1px solid var(--border);

  padding:0 20px;

  font-size:15px;

}

.filter-buttons{

  display:flex;

  gap:10px;

}

.filter-btn{

  border:none;

  background:#fff;

  border:1px solid var(--border);

  padding:12px 18px;

  border-radius:12px;

  cursor:pointer;

  font-weight:700;

}

.filter-btn.active{

  background:var(--green);

  color:#fff;

}

/* =========================================
   DOWNLOAD GRID
========================================= */

.downloads-grid{

  display:grid;

  grid-template-columns:
  repeat(2,1fr);

  gap:25px;

}

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

.download-card{

  background:#fff;

  border-radius:28px;

  padding:24px;

  border:1px solid var(--border);

  box-shadow:
  0 15px 40px rgba(0,0,0,.05);

  display:flex;

  gap:20px;

  transition:.3s;

}

.download-card:hover{

  transform:
  translateY(-6px);

}

.file-icon{

  width:90px;

  height:90px;

  border-radius:22px;

  display:flex;

  align-items:center;

  justify-content:center;

  font-size:22px;

  font-weight:800;

  color:#fff;

  flex-shrink:0;

}

.pdf{

  background:
  linear-gradient(
    135deg,
    #EF4444,
    #FF6B6B
  );

}

.template{

  background:
  linear-gradient(
    135deg,
    #2E7D5B,
    #4CAF7A
  );

}

.notes{

  background:
  linear-gradient(
    135deg,
    #4F7CFF,
    #7FA3FF
  );

}

.locked{

  background:
  linear-gradient(
    135deg,
    #9CA3AF,
    #BFC5CE
  );

}

.file-content{

  flex:1;

}

.file-tag{

  display:inline-block;

  background:#EAF6EF;

  color:var(--green);

  padding:8px 14px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;

  margin-bottom:14px;

}

.file-tag.technical{

  background:#EAF0FF;

  color:var(--blue);

}

.file-tag.bootcamp{

  background:#FFF3DD;

  color:var(--orange);

}

.locked-tag{

  background:#F3F4F6;

  color:#6B7280;

}

.file-content h3{

  font-size:26px;

  margin-bottom:10px;

}

.file-content p{

  color:var(--muted);

  line-height:1.8;

  margin-bottom:16px;

}

.file-meta{

  display:flex;

  justify-content:space-between;

  margin-bottom:18px;

  color:var(--muted);

  font-size:14px;

}

/* =========================================
   BUTTONS
========================================= */

.download-btn{

  width:100%;

  height:52px;

  border:none;

  border-radius:14px;

  background:var(--green);

  color:#fff;

  font-weight:700;

  cursor:pointer;

}

.locked-btn{

  width:100%;

  height:52px;

  border:none;

  border-radius:14px;

  background:#E5E7EB;

  color:#6B7280;

  font-weight:700;

  cursor:not-allowed;

}

/* =========================================
   LOCKED CARD
========================================= */

.locked-file{

  opacity:.85;

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

  .download-stats{

    grid-template-columns:
    repeat(2,1fr);

  }

  .downloads-grid{

    grid-template-columns:1fr;

  }

}

@media(max-width:768px){

  .downloads-page{

    padding:20px;

  }

  .downloads-header{

    flex-direction:column;

    align-items:flex-start;

    gap:20px;

  }

  .downloads-header h1{

    font-size:40px;

  }

  .download-stats{

    grid-template-columns:1fr;

  }

  .filter-section{

    flex-direction:column;

  }

  .filter-buttons{

    width:100%;

    overflow:auto;

  }

  .download-card{

    flex-direction:column;

  }

  .file-icon{

    width:100%;

  }

}

.selected-download{
  border:2px solid #2E7D5B;
}

.download-card{
  cursor:pointer;
}