/* Container */
.current-issue-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  margin-top: 7%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.current-issue-container h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  display: inline-block;
  padding-bottom: 0.4rem;
  width: 100%;
}

/* Error Message */
.error-message {
  text-align: center;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
}

/* Papers Table */
.papers-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.papers-table th,
.papers-table td {
  border: 1px solid #e0e6ed;
  padding: 15px 12px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.papers-table th {
  background: rgba(37, 150, 190, 1);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.papers-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.papers-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.papers-table tbody tr:hover {
  background: #e3f2fd;
  transition: background-color 0.3s ease;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Paper Links */
.paper-link {
  color: #2196f3;
  font-weight: 600;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.paper-link:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* Author Information */
.author-info {
  font-style: italic;
  color: #666;
  font-size: 0.88rem;
  margin-top: 8px;
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.download-btn:hover {
  background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Paper ID Column */
.paper-id {
  font-weight: 600;
  color: #34495e;
  text-align: center;
  font-size: 1rem;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .current-issue-container {
    padding: 1rem 0.5rem;
    margin-top: 5%;
  }
  
  .papers-table th,
  .papers-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
  
  .current-issue-container h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .current-issue-container {
    margin-top: 3%;
    padding: 0.5rem;
  }
  
  .current-issue-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .papers-table th,
  .papers-table td {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
  
  .papers-table {
    font-size: 0.8rem;
  }
  
  .paper-link {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .author-info {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .papers-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 0;
  }
  
  .papers-table thead,
  .papers-table tbody,
  .papers-table th,
  .papers-table td,
  .papers-table tr {
    display: block;
  }
  
  .papers-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .papers-table tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .papers-table td {
    border: none;
    position: relative;
    padding: 8px 8px 8px 35%;
    white-space: normal;
    text-align: left;
  }
  
  .papers-table td:before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 6px;
    width: 30%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #2c3e50;
  }
  
  .current-issue-container h1 {
    font-size: 1.3rem;
  }
  
  .paper-link {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .current-issue-container {
    padding: 0.25rem;
  }
  
  .papers-table td {
    padding: 6px 6px 6px 40%;
    font-size: 0.8rem;
  }
  
  .papers-table td:before {
    width: 35%;
    font-size: 0.75rem;
  }
  
  .current-issue-container h1 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .papers-table {
    box-shadow: none;
    border: 2px solid #000;
  }
  
  .papers-table th {
    background: #000 !important;
    color: #fff !important;
  }
  
  .papers-table tr:hover {
    background: transparent !important;
  }
  
  .download-btn {
    display: none;
  }
}