/* ====== GLOBAL STYLES ====== */
/* CSS Variables defined in layout.css */



/* ====== FOOTER ====== */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background-color: var(--light-bg);
  color: var(--secondary-color);
  text-align: center;
  padding: 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.main-footer a:hover {
  text-decoration: underline;
  color: #0b5ed7;
}

/* ====== BODY & PAGE STRUCTURE ====== */
body {
  min-height: 100vh;
  background: var(--light-bg);
}

/* ====== RESPONSIVE TYPOGRAPHY ====== */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
}

/* ====== LINK & BUTTON TRANSITIONS ====== */
a, button {
  transition: all 0.2s ease;
}

a:hover, button:hover {
  opacity: 0.9;
}

/* ====== CARD STYLING ====== */
.card {
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  background-color: var(--light-bg);
  border-color: var(--border-color);
  border-radius: 8px 8px 0 0;
}

/* ====== FORM STYLING ====== */
.form-control, .form-select {
  border-color: var(--border-color);
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ====== BUTTON STYLING ====== */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ====== SHADOWS ====== */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ====== UTILITIES ====== */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gap-05 {
  gap: 0.25rem !important;
}

.gap-1 {
  gap: 0.5rem !important;
}

.gap-2 {
  gap: 1rem !important;
}

.gap-3 {
  gap: 1.5rem !important;
}

/* ====== ANIMATIONS ====== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* ====== VIDEO EMBED RESPONSIVE ====== */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin: 15px 0;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* TikTok embed special handling */
.video-embed-tiktok {
  padding-bottom: auto;
  height: auto;
}

.video-embed-tiktok blockquote {
  width: 100% !important;
  max-width: 100% !important;
}

.video-embed-tiktok iframe {
  position: static;
}

/* Instagram embed special handling */
.video-embed-instagram {
  width: 100%;
  margin: 15px 0;
  display: block;
}

/* Instagram blockquote native embed */
.video-embed-instagram .instagram-media {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.video-embed-instagram blockquote.instagram-media {
  background: #FFF;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 1px 0 rgba(0,0,0,0.5), 0 1px 10px 0 rgba(0,0,0,0.15);
  margin: 1px;
  max-width: 540px;
  min-width: 326px;
  padding: 0;
  width: 99.375%;
  width: -webkit-calc(100% - 2px);
  width: calc(100% - 2px);
}
}

@media (max-width: 768px) {
  .video-embed-wrapper {
    margin: 10px 0;
  }
}
