/* styles.css — Shared styles for Linkster portfolio */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  color: #f1f5f9;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

/* Header */
.site-header {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
}

.site-header h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.site-header .subtitle {
  opacity: 0.7;
  margin-top: 6px;
  font-size: 1.05rem;
}

.site-header .btn {
  margin-top: 14px;
  display: inline-block;
}

/* My Time clock */
.my-time {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 0.95rem;
  background: rgba(56, 189, 248, 0.15);
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Navigation buttons on main page */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.nav-buttons a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

/* Stats section */
.stats-section {
  max-width: 800px;
  margin: 36px auto;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.stats-heading {
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.12);
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section wrapper */
.section {
  max-width: 800px;
  margin: 36px auto;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.section h2 {
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Hover cards on main page */
.card {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(2, 6, 23, 0.7);
  border-radius: 12px;
  cursor: default;
  transition: background 0.3s, transform 0.3s;
}

.card:hover {
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  margin-top: 0;
}

.card:hover .card-body {
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
}

.card-body p {
  margin-bottom: 8px;
}

/* Read More button */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #38bdf8;
  color: #020617;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(56, 189, 248, 0.3);
}

/* Topic page content */
.topic-content {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.topic-content h2 {
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.topic-content p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: #38bdf8;
  color: #020617;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
  text-decoration: none;
  color: #020617;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Contact form */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-label .required {
  color: #f87171;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.form-input::placeholder {
  color: rgba(241, 245, 249, 0.35);
}

select.form-input {
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 18px;
}

.form-error {
  color: #f87171;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.form-submit {
  cursor: pointer;
  border: none;
  font-size: 1rem;
  padding: 12px 28px;
}

/* Submissions viewer */
.submissions-status {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
  font-size: 1rem;
}

.submissions-error {
  color: #f87171;
  opacity: 1;
}

.submission-card {
  padding: 18px 20px;
  background: rgba(2, 6, 23, 0.7);
  border-radius: 12px;
  margin-bottom: 14px;
  border-left: 3px solid #38bdf8;
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.submission-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.submission-date {
  font-size: 0.82rem;
  opacity: 0.5;
}

.submission-reason {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.submission-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.submission-detail {
  opacity: 0.8;
}

.submission-message {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  opacity: 0.85;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.8rem;
  }

  .my-time {
    position: static;
    display: block;
    text-align: center;
    margin: 12px auto 0;
    width: fit-content;
  }

  .section,
  .topic-content {
    margin: 20px 12px;
    padding: 20px 16px;
  }

  .stats-section {
    margin: 20px 12px;
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}
