@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,800;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #fafafa;
  --text-main: #111111;
  --text-muted: #777777;
  --border: #e0e0e0;
  --accent: #111111;
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4vw;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* Header */
header {
  margin-bottom: 6vw;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 2rem;
  animation: fadeUp 1s var(--transition-smooth) both;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 70%;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 300px;
  text-align: right;
}

/* Main Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  list-style: none;
}

@media (max-width: 1024px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .subtitle {
    text-align: left;
    margin-top: 1rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Art Gallery Card Style */
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeUp 1s var(--transition-smooth) both;
  animation-delay: calc(var(--index) * 0.15s + 0.3s);
  group: hover;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #eee;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: transform 1.2s var(--transition-smooth), filter 1.2s var(--transition-smooth);
}

.option-card:hover .card-image {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.option-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-style: italic;
  font-weight: 400;
}

.option-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

/* Elegant Button */
.vote-btn {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
  padding: 1rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.vote-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-main);
  transform: translateY(100%);
  transition: transform 0.4s var(--transition-smooth);
  z-index: -1;
}

.vote-btn:hover {
  color: var(--bg);
}

.vote-btn:hover::before {
  transform: translateY(0);
}

/* Admin Dashboard Specific */
.admin-card .image-wrapper {
  aspect-ratio: 3/2;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}

.vote-count {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1;
}

.vote-percentage {
  font-size: 1rem;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 1.5rem;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--text-main);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.total-summary {
  margin-top: 6vw;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--text-muted);
  animation: fadeUp 1s var(--transition-smooth) both;
  animation-delay: 1s;
}

.total-summary span {
  color: var(--text-main);
  font-size: 3rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 3vw;
  right: 3vw;
  background: var(--text-main);
  color: var(--bg);
  padding: 1.2rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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