/* Main CSS - Global Styles for all pages */

/* Custom Font Family Classes */
.font-heebo { font-family: 'Heebo', sans-serif; }
.font-noto { font-family: 'Noto Sans', sans-serif; }
.font-gugi { font-family: 'Gugi', sans-serif; }

/* Custom Color Variables */
:root {
    --alps-blue: #0D6BAA;
    --alps-light-blue: #bcd2f1;
    --alps-bg: #ecf3f7;
    --alps-navy: #052B45;
    --alps-purple: #9C27B0;
    --alps-green: #47B473;
    --alps-orange: #FFA600;
    --alps-dark-gray: #333333;
    --alps-light-gray: #666666;
}

/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    text-decoration: none;
}

.btn-warning {
    background-color: #FF9933;
    color: white;
    border-color: #FF9933;
}

.btn-warning:hover {
    background-color: #ca8a04;
    border-color: #ca8a04;
    color: white;
    text-decoration: none;
}

/* Button size variants */
.btn.h6 {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.btn-lg {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
}

/* Image placeholder styles */
.image-placeholder {
    background-color: #f3f4f6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23d1d5db"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    border-radius: inherit;
}

.image-placeholder::after {
    content: attr(data-placeholder);
    margin-top: 60px;
    text-align: center;
    display: block;
}

/* Hide broken images */
img[src=""]:after,
img:not([src]):after,
img[src*="placeholder"]:after {
    content: "";
}

/* Additional spacing utilities */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Typography Classes */
.transparent-white {
    color: rgba(255, 255, 255, 0.74);
}

.fs-1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.fs-2 {
    font-size: 2rem;
    line-height: 1.2;
}

.fs-3 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.display-6 {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
}

.h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Layout Classes */
.content-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap > main,
.content-wrap > .main-content,
.content-wrap > section:first-child {
    flex: 1;
}

/* Shadow Classes */
.shadow-0 {
    box-shadow: none !important;
}

/* Alert Styles */
.alert {
    @apply fixed top-5 left-1/2 transform -translate-x-1/2 w-1/4 text-center p-3 rounded-md z-50;
}

.alert-warning {
    @apply bg-yellow-200 text-yellow-800 border border-yellow-300;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease-in, transform 200ms ease-in;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

/* Focus States for Better Accessibility */
.focus-visible:focus {
    @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

/* Mobile Menu Button Styles */
.btn.w-full {
    width: 100%;
    justify-content: center;
}

/* Navbar spacing fixes */
.navbar-nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Fix icon spacing in buttons */
.btn i {
    margin-left: 0.5rem;
}

.btn i.fas.fa-desktop {
    margin-left: 0.5rem;
}

/* Ensure proper text decoration reset */
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none;
}

/* Improved Responsive Container */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Brand Color Classes */
.bg-alps-blue { background-color: var(--alps-blue); }
.bg-alps-light-blue { background-color: var(--alps-light-blue); }
.bg-alps-bg { background-color: var(--alps-bg); }
.bg-alps-navy { background-color: var(--alps-navy); }
.bg-alps-purple { background-color: var(--alps-purple); }
.bg-alps-green { background-color: var(--alps-green); }
.bg-alps-orange { background-color: var(--alps-orange); }
.bg-alps-dark-gray { background-color: var(--alps-dark-gray); }
.bg-alps-light-gray { background-color: var(--alps-light-gray); }

.text-alps-blue { color: var(--alps-blue); }
.text-alps-light-blue { color: var(--alps-light-blue); }
.text-alps-navy { color: var(--alps-navy); }
.text-alps-purple { color: var(--alps-purple); }
.text-alps-green { color: var(--alps-green); }
.text-alps-orange { color: var(--alps-orange); }

.border-alps-blue { border-color: var(--alps-blue); }
.border-alps-light-blue { border-color: var(--alps-light-blue); }

/* Fullscreen Toggle */
.fullscreen-toggle {
    @apply fixed bottom-4 right-4 p-3 text-gray-600 hover:text-gray-800 cursor-pointer transition-colors z-40;
}

.fullscreen-toggle i {
    @apply text-xl;
}

/* Media containers */
.media-container { position: relative; border-radius: 0.5rem; }
.media-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* can be overridden inline */
    border-radius: inherit;
    position: relative;
    z-index: 1;
}

/* Shared placeholder (image/video) */
.media-placeholder {
    background-color: #f3f4f6;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
}
.media-placeholder svg { width: 32px; height: 32px; margin-bottom: 8px; color: #d1d5db; }

/* Video shell + elements */
.video-container {
    background-color: #1f2937; /* gray-800 */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #9ca3af; /* gray-400 */
    font-size: 14px;
    text-align: center;
    padding: 1rem;
    position: relative;
}
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.play-button {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #1f2937; /* icon color */
}
.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* can be overridden inline */
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* title-hero: text-4xl -> lg:5xl -> xl:6xl; bold; gray-900; mb-6 */
.title-hero {
    font-weight: 700;
    color: #111827;            /* gray-900 */
    margin-bottom: 1.5rem;     /* mb-6 */
    font-size: 2.25rem;        /* text-4xl */
    line-height: 2.5rem;
  }
  @media (min-width: 1024px) { /* lg */
    .title-hero { font-size: 3rem; line-height: 1; }
  }
  @media (min-width: 1280px) { /* xl */
    .title-hero { font-size: 3.75rem; line-height: 1; }
  }

  /* section-title: text-3xl -> lg:4xl; bold; gray-900; mb-4 */
  .section-title {
    font-weight: 500;
    color: #111827;
    margin-top: 2rem;        /* mb-4 */
    margin-bottom: 1rem;        /* mb-4 */
    font-size: 1.875rem;        /* text-3xl */
    line-height: 2.25rem;
    text-align: center;
  }
  @media (min-width: 1024px) {
    .section-title { font-size: 2.25rem; line-height: 2.5rem; } /* text-4xl */
  }

  /* section-title-invert: same as above but white */
  .section-title-invert {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    text-align: center;
  }
  @media (min-width: 1024px) {
    .section-title-invert { font-size: 2.25rem; line-height: 2.5rem; }
  }

  /* section-subtitle: text-xl; gray-600; max-w-3xl; mx-auto */
  .section-subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #4b5563;             /* gray-600 */
    max-width: 48rem;           /* 3xl */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;        /* mb-4 */
    text-align: center;
  }

  /* section-subtitle-invert: same but gray-300 */
  .section-subtitle-invert {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #d1d5db;             /* gray-300 */
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* lead: text-lg; gray-600; leading-relaxed */
  .lead {
    font-size: 1.125rem;
    color: #4b5563;             /* gray-600 */
    line-height: 1.625;         /* leading-relaxed overrides text-lg line-height */
  }

  .bg-publishers-hero {
    background: linear-gradient(to bottom, #ffffff, #c5c5c5);
  }