/**
 * Valentine's Day Boilerplate - Base Styles
 * ==========================================
 * Reset, normalization, and foundational styles
 */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lato:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* =============================================
   CSS RESET
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--vday-wine);
  background-color: var(--vday-blush);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--vday-red);
  color: var(--vday-white);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--vday-red);
  outline-offset: 2px;
}

/* =============================================
   TYPOGRAPHY BASE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--vday-wine);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--vday-red);
  text-decoration: none;
  transition: var(--transition-colors);
}

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

strong, b {
  font-weight: var(--font-bold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* Script/Cursive Text */
.text-script {
  font-family: var(--font-script);
}

/* =============================================
   LISTS
   ============================================= */
ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

/* Heart Bullet List */
ul.heart-list {
  list-style: none;
  padding-left: var(--space-8);
}

ul.heart-list li::before {
  content: '💕';
  margin-right: var(--space-2);
  margin-left: calc(-1 * var(--space-8));
}

/* =============================================
   IMAGES & MEDIA
   ============================================= */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  border-radius: var(--radius-lg);
}

figure {
  margin: var(--space-6) 0;
}

figcaption {
  font-size: var(--text-sm);
  color: var(--vday-rose-gold);
  text-align: center;
  margin-top: var(--space-2);
}

/* =============================================
   FORMS BASE
   ============================================= */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  color: var(--vday-wine);
}

/* =============================================
   TABLES
   ============================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--vday-pink);
}

th {
  background-color: var(--vday-pink);
  color: var(--vday-wine);
  font-weight: var(--font-semibold);
}

tr:hover {
  background-color: rgba(var(--vday-pink-rgb), 0.3);
}

/* =============================================
   CODE
   ============================================= */
code, pre, kbd {
  font-family: var(--font-mono);
}

code {
  background-color: var(--vday-pink);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--vday-red-dark);
}

pre {
  background-color: var(--vday-wine);
  color: var(--vday-pink);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* =============================================
   BLOCKQUOTE
   ============================================= */
blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--vday-wine);
  border-left: 4px solid var(--vday-red);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: var(--font-script);
  font-size: var(--text-5xl);
  color: var(--vday-pink);
  position: absolute;
  left: var(--space-2);
  top: -var(--space-2);
}

blockquote cite {
  display: block;
  font-size: var(--text-base);
  font-style: normal;
  color: var(--vday-rose-gold);
  margin-top: var(--space-2);
}

/* =============================================
   HORIZONTAL RULE
   ============================================= */
hr {
  border: none;
  height: 2px;
  background: var(--gradient-romantic);
  margin: var(--space-8) 0;
  border-radius: var(--radius-full);
}

hr.heart {
  background: none;
  text-align: center;
  height: auto;
}

hr.heart::before {
  content: '💕 💖 💗';
  font-size: var(--text-xl);
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--vday-blush);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-romantic);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vday-red);
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .no-print {
    display: none !important;
  }
}
