/* BottledLife.tv - Custom Styles */
/* Magazine-style editorial design with blue/gray color scheme */

:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2c3e50;
  --text: #333333;
  --text-light: #7f8c8d;
  --accent: #e74c3c;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #34495e;
  --border: #ecf0f1;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  line-height: 1.2;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.navbar {
  background: var(--bg) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text) !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==);
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 800px;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h1 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

.article-content h2 {
  margin-top: 3rem;
  padding-top: 1rem;
}

.article-content a {
  font-weight: 500;
  border-bottom: 1px dotted var(--primary);
}

.article-content a:hover {
  border-bottom-style: solid;
  text-decoration: none;
}

.article-content img {
  margin: 2.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content ul, .article-content ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  font-weight: 600;
  color: var(--secondary);
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.625rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer hr {
  border-color: rgba(255,255,255,0.15);
  margin: 2rem 0 1.5rem;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Featured Image */
.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.back-to-top.show {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 2rem 0;
  }

  .featured-image {
    height: 250px;
  }
}

/* Print styles */
@media print {
  .navbar, footer, .back-to-top, .btn {
    display: none;
  }

  .article-content {
    max-width: 100%;
  }

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