/* === MODERN NOTIFICATION STYLING === */

/* --- Optional: Import a clean font --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --- Define a color palette in :root --- */
:root {
  --primary-color: #3498db;
  --primary-hover: #2980b9;
  --secondary-color: #ecf0f1;
  --secondary-hover: #e0e6e8;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-content: #34495e;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --badge-bg: #e0f7fa;
  --badge-text: #007a99;
}

/* --- Basic Setup --- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-content);
  margin: 0;
}

/* --- Main Container --- */
.notification-container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* --- Main Title --- */
.notification-container .title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* --- Notification List (Container for items) --- */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Space between notification cards */
}

/* --- Single Notification Item (The "Card") --- */
.notification-item-public {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px; /* Softer, more modern rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column; /* Stack logo and details on mobile */
  align-items: center; /* Center-align on mobile */
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.notification-item-public:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px); /* Lifts the card slightly on hover */
}

/* --- Notification Logo --- */
.notification-logo-public {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px; /* Matches card radius */
  overflow: hidden;
  background-color: #f0f0f0; /* Placeholder if image fails */
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.notification-logo-public img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Use 'contain' for logos, 'cover' for photos */
}

/* --- Notification Details (Text content) --- */
.notification-details-public {
  width: 100%;
}

/* --- Category Badge --- */
.category-badge {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  padding: 5px 12px;
  border-radius: 15px; /* Pill shape */
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Notification Title --- */
.notification-details-public h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px 0;
}

/* --- Meta Info (Date) --- */
.meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* --- Content Description --- */
.notification-details-public p:not(.meta) {
  line-height: 1.6;
  color: var(--text-content);
  margin-bottom: 20px;
}

/* --- Action Buttons Container --- */
.notification-actions {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to stack if needed */
  gap: 12px; /* Space between buttons */
  justify-content: center; /* Center buttons on mobile */
  margin-top: auto; /* Pushes buttons to the bottom */
}

/* --- Button Styling --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn i {
  margin-right: 8px; /* Space between icon and text */
}

/* Primary Button (Download) */
.btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Secondary Button (View Link) */
.btn.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border: 1px solid #bdc3c7;
}

.btn.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: #a0aab2;
  transform: translateY(-2px);
  box-shadow: none;
}

/* === RESPONSIVE STYLING (For Tablets & Desktops) === */
@media (min-width: 768px) {
  .notification-container {
    padding: 40px;
  }

  /* Change card layout to horizontal */
  .notification-item-public {
    flex-direction: row; /* Logo and details side-by-side */
    align-items: flex-start; /* Align to the top */
    text-align: left; /* Align text to the left */
    padding: 25px;
  }

  /* Adjust logo for side-by-side layout */
  .notification-logo-public {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
    margin-right: 25px; /* Add space to the right */
  }

  /* Allow details to take up remaining space */
  .notification-details-public {
    flex: 1;
  }

  /* Align buttons to the left on desktop */
  .notification-actions {
    justify-content: flex-start;
  }
}



