/* V2 Modern Styles - Quotationsbook.com */

:root {
  /* V2 Colors */
  --primary: #de6f66;
  --accent: #4ac4b7;
  --text: #676767;
  --text-dark: #333;
  --text-light: #999;
  --bg: #fff;
  --bg-light: #f5f5f5;
  --border: #ddd;

  /* Typography */
  --font-body: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --font-quote: 'Source Sans Pro', Georgia, serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Main container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: var(--spacing-lg) 0;
  max-width: 900px;
  margin: 0 auto;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

strong {
  color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 2em;
  margin-top: 0;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

p {
  margin: var(--spacing-sm) 0;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-brand span {
  color: white;
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 10px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0;
}

.navbar-nav a {
  display: block;
  padding: 0 20px;
  line-height: 60px;
  color: white;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.navbar-nav a:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Section title header */
.section-title {
  background: var(--accent);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: 4px;
}

.section-title h1,
.section-title h2 {
  color: white;
  margin: 0;
}

/* Quote Card */
.quote-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.quote-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.quote-text {
  font-family: var(--font-quote);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.quote-text::before {
  content: '\201C';
  color: var(--primary);
  font-size: 1.5em;
  margin-right: 4px;
}

.quote-author {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.quote-author a {
  color: var(--accent);
}

.quote-author a:hover {
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
  font-size: 16px;
}

.breadcrumb span {
  color: var(--text);
  margin: 0 8px;
}

/* Lists */
.tag-list, .author-list {
  list-style: none;
  padding: 0;
}

.tag-list li, .author-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid #eee;
}

.tag-list li:last-child,
.author-list li:last-child {
  border-bottom: none;
}

/* Alphabet navigation */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: var(--spacing-md) 0;
}

.alphabet-nav a {
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

.alphabet-nav a:hover {
  background: var(--primary);
  text-decoration: none;
}

.alphabet-nav a.active {
  background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #c95f56;
  color: white;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #3eb3a6;
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-light);
  text-decoration: none;
}

/* Pagination */
.pagination {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5em 1em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  text-decoration: none;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover {
  background: var(--bg-light);
  border-color: var(--accent);
  text-decoration: none;
}

.pagination .current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 600;
}

.pagination .disabled {
  color: var(--text-light);
  cursor: not-allowed;
}

.pagination .ellipsis {
  border: none;
  background: none;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card h3 {
  color: var(--accent);
  font-size: 2em;
  margin: 0;
}

.stat-card p {
  color: var(--text);
  margin: var(--spacing-xs) 0 0;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

footer a {
  color: white;
}

footer a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Back link */
.back-link {
  display: inline-block;
  padding: 0.7em 1.5em;
  background: var(--bg-light);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  margin-top: var(--spacing-md);
}

.back-link:hover {
  background: var(--border);
  text-decoration: none;
}

/* Featured quote */
.featured-quote {
  background: linear-gradient(135deg, var(--primary), #e06767);
  color: white;
  padding: var(--spacing-xl);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
}

.featured-quote .quote-text {
  color: white;
  font-size: 1.5rem;
}

.featured-quote .quote-text::before {
  color: rgba(255,255,255,0.5);
}

.featured-quote .quote-author {
  color: rgba(255,255,255,0.9);
}

.featured-quote .quote-author a {
  color: rgba(255,255,255,0.9);
}

/* Author info */
.author-info {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.author-meta {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag-cloud a {
  display: inline-block;
  padding: 0.3em 0.8em;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

.tag-cloud a:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

/* Share buttons container */
.share-section {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}

th, td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-nav a {
    line-height: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  main {
    padding: var(--spacing-sm);
  }

  .quote-text {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.5em;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .alphabet-nav a {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }
}
