@import "tailwindcss";
@plugin "daisyui";
@custom-variant dark (&:where(.dark, .dark *));
@import "swiper/css";
@import "swiper/css/navigation";
@import "swiper/css/pagination";
@import "swiper/css/effect-fade";
@import "./components/_navigation.css";

@theme {
  --font-display: 'Jost', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --color-terracotta: #c75a3a;
  --color-terracotta-dark: #b04e30;
  --color-orange: #f55d2f;
  --color-bg: #f2f2f2;
}

@layer base {
  body {
    background-color: var(--color-bg);
  }

  ::selection {
    background-color: black;
    color: white;
  }
}

@layer components {
  /* Hero slider */
  .swiper {
    @apply w-full relative;
    margin-top: 35px;
  }

  .slider-torn-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-image: url("/sloppy-inverted.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom;
    z-index: 30;
    pointer-events: none;
  }

  .swiper-slide {
    @apply relative;
  }

  .swiper-slide img {
    @apply w-full h-auto object-cover md:h-full;
  }

  /* Hero content - bottom left positioning */
  .hero-content-centered {
    @apply absolute bottom-8 left-8 hidden md:flex flex-col items-start z-10;
    text-align: left;
  }

  .hero-title-decoration {
    @apply w-8 h-0.5 mb-2;
  }

  .hero-title {
    @apply text-xl md:text-3xl font-bold tracking-wide;
    font-family: var(--font-display);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.9);
  }

  .hero-subtitle {
    @apply text-xs md:text-sm text-white tracking-widest uppercase mt-1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.9);
  }

  /* Section styles */
  .section-title {
    @apply text-3xl md:text-4xl font-semibold text-gray-900 mb-8;
    font-family: var(--font-display);
  }

  .section-subtitle {
    @apply text-xl text-gray-600 mb-4;
  }

  /* Quote section */
  .quote-section {
    @apply bg-black py-8 md:py-12;
  }

  .quote-card {
    @apply p-4 md:p-6 text-center;
  }

  .quote-text {
    @apply text-lg md:text-2xl font-bold text-white leading-tight mb-3;
    font-family: var(--font-display);
  }

  .quote-author {
    @apply text-lg font-semibold block text-white;
  }

  .quote-torn-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-image: url("/sloppy-gray.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: top;
    z-index: 10;
    pointer-events: none;
  }

  /* News cards */
  .news-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow;
  }

  .news-card-title {
    @apply text-xl font-semibold text-gray-900 mb-2;
  }

  .news-card-content {
    @apply text-gray-600 line-clamp-4;
  }

  /* Swiper navigation arrows */
  .swiper-button-next,
  .swiper-button-prev {
    color: white !important;
  }

  /* Custom pagination - horizontal dashes like Ville Bondy */
  .swiper-pagination-custom,
  .swiper-pagination {
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .custom-bullet,
  .gallery-bullet {
    flex-shrink: 0;
    width: 2rem;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .custom-bullet.active,
  .gallery-bullet.active {
    width: 3rem;
  }

  /* Font utilities */
  .font-display {
    font-family: var(--font-display);
  }

  .font-body {
    font-family: var(--font-body);
  }

  /* Timeline styles */
  .timeline-section {
    position: relative;
    overflow: hidden;
  }

  .timeline-watermark {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: clamp(12rem, 35vw, 30rem);
    font-weight: 700;
    font-family: var(--font-display);
    line-height: 1;
    pointer-events: none;
    user-select: none;
  }

  .timeline-year {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .timeline-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
  }

  .timeline-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 48rem;
  }

  @media (max-width: 768px) {
    .timeline-watermark {
      right: -15%;
    }

    .timeline-description {
      font-size: 1rem;
    }
  }

  /* Fixed Timeline Navigation (right side) */
  .timeline-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.25rem;
  }

  .timeline-nav::-webkit-scrollbar {
    display: none;
  }

  .timeline-nav-link {
    display: block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    backdrop-filter: blur(4px);
  }

  .timeline-nav-link:hover {
    color: var(--accent-color, white);
    transform: translateX(-4px);
  }

  .timeline-nav-link.active {
    color: var(--accent-color, white);
    background: rgba(0, 0, 0, 0.9);
    font-weight: 700;
  }

  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }

  /* Team page styles */
  .team-member-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
  }

  .team-member-photo img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
  }

  .team-member:hover .team-member-photo img {
    filter: grayscale(0%);
  }

  .team-member-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
}
