@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #e65100;
  --bg-color: #f8fafc;
  --text-dark: #2d3748;
  --text-light: #718096;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: white;
  border-bottom: 1px solid #edf2f7;
  margin-top: 50px;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin: 0 0 10px;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0;
}

/* Main Container */
.resources-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 50vh;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px;
  color: var(--text-light);
}

.empty-state span {
  font-size: 4rem;
  margin-bottom: 15px;
  opacity: 0.4;
  display: block;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  gap: 20px;
}

/* Individual Card */
.resource-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f7;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

/* File Icon Box */
.file-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.file-icon span {
  font-size: 2rem;
}

/* Icon Colors */
.file-icon.type-pdf {
  background-color: #fff5f5;
  color: #e53e3e;
}
.file-icon.type-image {
  background-color: #ebf8ff;
  color: #3182ce;
}
.file-icon.type-word {
  background-color: #ebf4ff;
  color: #2b6cb0;
}
.file-icon.type-excel {
  background-color: #f0fff4;
  color: #38a169;
}
.file-icon.type-generic {
  background-color: #edf2f7;
  color: #718096;
}

/* Text Content */
.file-details {
  flex: 1;
}

.file-details h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.file-details p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.meta-date {
  font-size: 0.75rem;
  color: #a0aec0;
  background: #f7fafc;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Download Button */
.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-download:hover {
  background-color: #c04400;
}

/* Responsive */
@media (max-width: 768px) {
  .resource-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .file-icon {
    width: 50px;
    height: 50px;
  }

  .action-area {
    width: 100%;
  }

  .btn-download {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}
