/* Modern CSS for Life Is A Bitch — contemporary, clean, responsive */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --muted: #666666;
  --accent: #ff6b6b;
  --accent-2: #4ecdc4;
  --accent-3: #45b7d1;
  --twitter-blue: #1da1f2;
  --facebook-blue: #1877f2;
  --instagram-gradient: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  --ring: rgba(255, 107, 107, 0.3);
  --shadow: 0 20px 40px rgba(0,0,0,0.3);
  --shadow-light: 0 8px 24px rgba(0,0,0,0.2);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 800px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

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

html, body { 
  height: 100%; 
  scroll-behavior: smooth;
}

/* Base */
body {
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(69, 183, 209, 0.08) 0%, transparent 50%),
    var(--bg);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: var(--accent); 
  text-decoration: none; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover { 
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky; 
  top: 0; 
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

header a {
  font-weight: 700; 
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

header a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

header a:hover::after {
  width: 100%;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0 4rem;
}

/* Quotes container */
.quotes-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.quote-item {
  text-align: center;
  position: relative;
}

.quote-item::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.quote-item:first-child::before {
  display: none;
}

.main-quote {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(17, 17, 17, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-light);
  border-color: rgba(255, 107, 107, 0.2);
}

.main-quote::before {
  content: """;
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: serif;
  font-weight: 300;
}

.main-quote::after {
  content: """;
  position: absolute;
  bottom: -35px;
  right: 25px;
  font-size: 5rem;
  color: var(--accent-2);
  opacity: 0.2;
  font-family: serif;
  font-weight: 300;
}

/* Quote footer */
.quote-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.quote-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  opacity: 0.8;
}

/* Social media buttons */
.social-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  color: white;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.social-btn svg {
  flex-shrink: 0;
}

/* Twitter button */
.twitter-btn {
  background: var(--twitter-blue);
}

.twitter-btn:hover {
  background: #1a91da;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* Facebook button */
.facebook-btn {
  background: var(--facebook-blue);
}

.facebook-btn:hover {
  background: #166fe5;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Instagram button */
.instagram-btn {
  background: var(--instagram-gradient);
}

.instagram-btn:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.no-quote {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  padding: 4rem 2rem;
  background: rgba(26, 26, 26, 0.5);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Archive */
.archive-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.archive-item {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(17, 17, 17, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  position: relative;
  transition: all 0.3s ease;
}

.archive-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 107, 0.2);
}

.archive-quote {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  letter-spacing: -0.01em;
}

.archive-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.archive-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* Footer */
footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.4));
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Focus rings */
a:focus-visible, 
button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-item {
  animation: fadeInUp 0.6s ease-out;
}

.quote-item:nth-child(2) {
  animation-delay: 0.1s;
}

.quote-item:nth-child(3) {
  animation-delay: 0.2s;
}

/* Responsive design */
@media (max-width: 768px) {
  .quotes-container {
    gap: 3rem;
    padding: 0 1rem;
  }
  
  .main-quote {
    font-size: 1.6rem;
    padding: 2rem 1.5rem;
  }
  
  .archive-quote {
    font-size: 1.2rem;
  }
  
  .quote-item::before {
    width: 40px;
  }
  
  .quote-footer,
  .archive-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .social-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .social-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .main-quote {
    font-size: 1.4rem;
    padding: 1.5rem 1rem;
  }
  
  .quotes-container {
    gap: 2.5rem;
  }
  
  header a {
    font-size: 1.25rem;
  }
  
  .social-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .social-buttons {
    gap: 0.25rem;
  }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0a0a0a;
    --surface: #111111;
  }
}

/* Print styles */
@media print {
  .quote-item::before {
    display: none;
  }
  
  .main-quote {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .social-buttons {
    display: none;
  }
}
