/* Enhanced Notice Page Styles */

/* Notices Container */
.notices-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* Notice Card Enhanced */
.notice-card-enhanced {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.notice-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notice-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(2, 102, 112, 0.15);
  border-color: var(--primary-color);
}

.notice-card-enhanced:hover::before {
  opacity: 1;
}

/* Notice Header */
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.notice-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
}

.notice-date-badge i {
  color: #64748b;
  font-size: 14px;
}

.notice-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #93c5fd;
}

.notice-category-badge i {
  font-size: 14px;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #fbbf24;
  animation: pulse 2s infinite;
}

.new-badge i {
  font-size: 12px;
  color: #f59e0b;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Notice Body */
.notice-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.3s ease;
}

.notice-card-enhanced:hover .notice-title {
  color: var(--primary-color);
}

.notice-title i {
  color: var(--primary-color);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 500;
}

/* Notice Footer */
.notice-footer {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 2px solid #f1f5f9;
}

.btn-read-more {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 102, 112, 0.3);
}

.btn-read-more i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

.btn-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: white;
  color: #64748b;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-attachment:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
  transform: translateY(-2px);
}

.btn-attachment i {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .notices-container {
    grid-template-columns: 1fr;
  }
  
  .notice-header {
    flex-direction: column;
  }
  
  .notice-footer {
    flex-direction: column;
  }
  
  .btn-read-more,
  .btn-attachment {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .notice-card-enhanced {
    padding: 20px;
  }
  
  .notice-title {
    font-size: 18px;
  }
  
  .notice-description {
    font-size: 14px;
  }
}

/* Loading State */
.notices-container:empty::before {
  content: 'লোড হচ্ছে...';
  display: block;
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #94a3b8;
}

/* Hover Effects */
.notice-card-enhanced {
  cursor: pointer;
}

.notice-card-enhanced:active {
  transform: translateY(-3px);
}

/* Notice Details Page Styles */
.notice-details-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  color: white;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notice-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Main Content */
.notice-main-content {
  min-width: 0;
}

.notice-details-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
}

.notice-details-header-section {
  padding: 35px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 3px solid #cbd5e1;
}

.notice-details-title {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notice-details-title i {
  color: var(--primary-color);
  font-size: 36px;
  flex-shrink: 0;
  margin-top: 5px;
}

.notice-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.meta-item-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.meta-item-detail i {
  color: var(--primary-color);
  font-size: 18px;
}

.meta-item-detail strong {
  color: #1e293b;
}

.category-badge-detail {
  padding: 4px 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.new-badge-detail {
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fbbf24;
}

.new-badge-detail i {
  color: #f59e0b;
}

/* Notice Body */
.notice-details-body {
  padding: 40px 35px;
}

.notice-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  font-weight: 500;
}

/* Notice Footer */
.notice-details-footer {
  padding: 25px 35px;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-download-detail,
.btn-back-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download-detail {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  flex: 1;
  justify-content: center;
}

.btn-download-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-back-detail {
  background: white;
  color: #64748b;
  border: 2px solid #cbd5e1;
}

.btn-back-detail:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
}

/* Sidebar */
.notice-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card-detail {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
}

.sidebar-card-header-detail {
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-card-header-detail i {
  font-size: 24px;
  color: var(--primary-color);
}

.sidebar-card-header-detail h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.sidebar-card-body-detail {
  padding: 20px;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
}

.share-btn i {
  font-size: 20px;
  width: 25px;
}

.share-btn.facebook {
  background: #e7f3ff;
  color: #1877f2;
  border-color: #1877f2;
}

.share-btn.facebook:hover {
  background: #1877f2;
  color: white;
  transform: translateX(5px);
}

.share-btn.twitter {
  background: #e0f2fe;
  color: #1da1f2;
  border-color: #1da1f2;
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
  transform: translateX(5px);
}

.share-btn.whatsapp {
  background: #e8f5e9;
  color: #25d366;
  border-color: #25d366;
}

.share-btn.whatsapp:hover {
  background: #25d366;
  color: white;
  transform: translateX(5px);
}

.share-btn.copy {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #d1d5db;
}

.share-btn.copy:hover {
  background: #e5e7eb;
  color: #374151;
  transform: translateX(5px);
}

/* Related Notices */
.related-notices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.related-notice-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.related-notice-item:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.related-notice-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.related-notice-content {
  flex: 1;
  min-width: 0;
}

.related-notice-content h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.related-notice-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.related-notice-date i {
  font-size: 13px;
}

.view-all-notices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-all-notices:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 102, 112, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
  .notice-details-grid {
    grid-template-columns: 1fr;
  }
  
  .notice-details-sidebar {
    order: -1;
  }
  
  .notice-details-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .notice-details-header-section,
  .notice-details-body,
  .notice-details-footer {
    padding: 25px 20px;
  }
  
  .notice-details-title {
    font-size: 22px;
  }
  
  .notice-meta-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .notice-details-footer {
    flex-direction: column;
  }
  
  .btn-download-detail,
  .btn-back-detail {
    width: 100%;
    justify-content: center;
  }
}
