/* style.css - Vat-Vriksha Journal (bright, elegant & professional) */

:root {
  --bg: #f4faf3;
  --card: #ffffff;
  --accent: #0066cc;          /* Bright academic blue */
  --accent-2: #009688;        /* Teal for contrast */
  --accent-3: #212121;        /* Deep neutral text */
  --muted: #666;
  --highlight: #ff7043;       /* Coral orange */
  --radius: 10px;
  --gap: 20px;
  --maxw: 1100px;
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #e0f7fa, #fff);
  color: var(--accent-3);
  line-height: 1.6;
}

/* container layout */
.container {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 0 20px;
}

/* header banner */
.header-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.header-banner img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.9);
}
.header-banner::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0066cc, #00040c);
  padding: 12px 20px;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .title {
  font-size: 20px;
  font-weight: 700;
}
.brand .subtitle {
  font-size: 13px;
  color: #e0f7fa;
}

/* navigation */
nav.main-nav {
  margin-top: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #ff7043, #ff8a65);
  padding: 10px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
nav.main-nav a {
  text-decoration: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}
nav.main-nav a:hover {
  background: #fff;
  color: var(--highlight);
  transform: scale(1.05);
}

/* layout: two columns */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
  margin-top: 20px;
}

/* content card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
}

/* sidebar */
.sidebar .meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meta .item {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,112,67,0.08), rgba(0,150,136,0.08));
  border-left: 4px solid var(--accent-2);
  font-size: 14px;
}
.meta .label {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}
.meta .value {
  color: var(--muted);
  font-size: 13px;
}

/* issue list */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.issue {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0, 102, 204, 0.05);
}
.issue h4 {
  margin: 0 0 6px 0;
  color: var(--accent);
}
.issue p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* footer */
.footer {
  margin-top: 30px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 18px 0;
  background: linear-gradient(90deg, #009688, #0066cc);
}

/* editorial board grid */
.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.editor {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(0,150,136,0.06), rgba(255,112,67,0.06));
  transition: 0.3s;
}
.editor:hover {
  background: linear-gradient(120deg, rgba(0,150,136,0.15), rgba(255,112,67,0.15));
}
.editor img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* forms */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
label {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-3);
}
input[type="text"], input[type="email"], select, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font-size: 14px;
  width: 100%;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}
.btn:hover {
  background: var(--highlight);
  color: #fff;
}

/* subtle table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-align: left;
  font-size: 14px;
}
.table th {
  background: #e0f7fa;
  color: var(--accent-3);
}

/* responsiveness */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .header-banner img {
    height: 160px;
  }
  nav.main-nav {
    justify-content: center;
  }
}


/* Notice banner styling */
#migrationNotice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #05eebb;
  color: #130101;
  text-align: center;
  padding: 12px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  box-shadow: 10px 50px 500px rgb(248, 2, 2);
  z-index: 9999;
  transition: opacity 0.5s ease, top 0.5s ease;
}

#migrationNotice.hide {
  opacity: 0;
  top: -60px;
}

#migrationNotice button {
  background: none;
  border: none;
  color: #555;
  font-size: 18px;
  font-weight: bold;
  float: right;
  margin-right: 15px;
  cursor: pointer;
}

#migrationNotice button:hover {
  color: #000;
}

/* Prevent content overlap */
body {
  margin-top: 60px;
}

a {
  text-decoration: none;   /* Removes underline */
  color: inherit;          /* Makes link color same as surrounding text */
}

a:hover {
  text-decoration: underline; /* Optional: show underline only when hovered */
  color: #000;                /* Optional: set hover color (black here) */
}