/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 *
 *= require_self
 */

/* VARIABLES */
:root {
  /* Colors */
  --primary: #007acc;
  --primary-hover: #005fa3;
  --secondary: #f5f5f5;
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --white: #ffffff;
  --black: #000000;
  --text-primary: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --background-light: #f9f9f9;
  --background-secondary: #ffffff;
  --background-input: #ffffff;

  /* Typography */
  --font-family: "Inter", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;

  /* Borders & Radius */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Shadows */
  --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0px 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0px 4px 12px rgba(0, 0, 0, 0.2);

  /* Animation */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
body {
  background: linear-gradient(to bottom, #f9fafb, #eef1f5);
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: #007acc;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background-color: #f8f8f8;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: var(--spacing-sm);
}

.header__nav-logo {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: bold;
  height: 36px;
  text-decoration: none;
  width: 36px;
}

.header__nav-site-name {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--primary);
}

.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__nav-item {
  display: inline-block;
}

.header__nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.header__nav-link:hover {
  color: #007acc;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
}

.btn--primary {
  background-color: #007acc;
  color: #fff;
}

.btn--primary:hover {
  background-color: #005fa3;
}

.btn--secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn--secondary:hover {
  background-color: #d9d9d9;
}

/* Preview Section */
.reading-list {
  max-width: 600px;
  padding: 1rem;
  margin: 2rem auto;
}

.reading-list__title {
  color: #007acc;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0rem;
}

.reading-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reading-list__item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  /*gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease-in-out;*/
}

/* Paper-like container */
.reading-list__paper {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1), 0px 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 550px;
  position: relative;
}

/* Paper-like hover effect */
.reading-list__paper:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15), 0px 10px 25px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.reading-list__thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.reading-list__content {
  flex-grow: 1;
}

.reading-list__title-link {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  width: 100%;
}
/* Remove blue outline around the entire box when clicked */
.reading-list__link:focus-visible {
  outline: 2px solid #007acc;
  border-radius: 8px;
}

.reading-list__title-link:hover {
  text-decoration: underline;
}

/* Reading List Admin section */
.footer {
  text-align: center;
}

/* Flash Messages */
.flash-container {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.flash {
  position: relative;
  padding: 12px 36px 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  width: 90%;
  animation: flash-fade-in 0.3s ease-out;
  pointer-events: auto;
  display: flex;
  align-items: center;
}

.flash__message {
  flex: 1;
  font-weight: 500;
}

.flash--notice {
  background-color: var(--white);
  color: var(--text-primary);
  border-left: 4px solid var(--success);
}

.flash--alert {
  background-color: var(--white);
  color: var(--text-primary);
  border-left: 4px solid var(--error);
}

.flash__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.flash__dismiss:hover {
  opacity: 1;
  background-color: var(--border-color);
}

@keyframes flash-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
