/* Fonts: Oswald (headings), Inter (body) */
:root {
  --bg: #0a0b0f; /* black */
  --bg-alt: #0f1117; /* near black */
  --text: #e8e8ea; /* white-ish */
  --muted: #a0a0a8; /* gray */
  --primary: #e10600; /* aggressive red */
  --primary-2: #ffffff; /* white for accents */
  --card: #11131a;
  --border: #1b1e27;
  --shadow: 0 30px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
video.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.1) brightness(0.5); }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,11,15,0.05);
  backdrop-filter: blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { 
    height: 48px; 
    width: auto; 
    display: block; 
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); 
    aspect-ratio: 1 / 1; /* Prevent layout shift for logo */
}
.logo-text { font-family: Oswald, Impact, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.logo .fight-text { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.logo .academy-text { color: var(--primary); text-shadow: 0 0 15px rgba(225,6,0,0.6), 0 0 30px rgba(225,6,0,0.3); }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; opacity: 0.9; }
.nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.6); }

.nav-toggle { display: none; background: none; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.hero .overlay { position: absolute; inset: 0; background: rgba(10,11,15,0.3); z-index: 1; pointer-events: none; }
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.15) brightness(0.55); transform: scale(1.02); z-index: 0; pointer-events: none; }
.hero .hero-bg-picture { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .hero-bg-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    filter: grayscale(1) contrast(1.15) brightness(0.55); 
    transform: scale(1.02); 
    display: block; 
    pointer-events: none; 
    /* Note: aspect-ratio not needed here as hero uses full viewport height (min-height: 100vh) */
}
.hero .hero-stripe { position: absolute; top: 0; right: 14vw; width: min(22vw, 320px); height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), linear-gradient(180deg, rgba(225,6,0,0.85), rgba(255,59,59,0.65)); mix-blend-mode: screen; opacity: 0.35; pointer-events: none; animation: stripeBlink 7s ease-in-out infinite; will-change: opacity; }
.hero .hero-stripe-img { position: absolute; top: 0; right: 14vw; width: min(22vw, 320px); height: 100%; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0.4; pointer-events: none; filter: grayscale(1) contrast(1.1); }
.hero-content { position: relative; z-index: 2; text-align: left; padding: 100px 0 60px; width: 100%; user-select: text; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; }
.hero-content h1, .hero-content p { user-select: text; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; pointer-events: auto; }
.hero .container.narrow { width: min(1200px, calc(100% - 40px)); }
.hero h1 { font-family: Oswald, Impact, sans-serif; font-size: clamp(48px, 9vw, 120px); line-height: 1.02; margin: 0 0 24px; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 12px 60px rgba(0,0,0,0.8); }
.hero h1 .line { display: block; }
.hero h1 .line-2 { margin-top: 15px; }
.hero p { margin: 10px 0 24px; max-width: 560px; color: #d6d6da; font-size: 16px; }
.hero .cta-group { justify-content: flex-start; }

.cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); padding: 12px 18px; text-decoration: none; color: #fff; font-weight: 700; letter-spacing: .2px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--primary), #ff3b3b); box-shadow: 0 10px 30px rgba(225,6,0,0.4); }
.btn-primary:hover { 
	background: linear-gradient(90deg, #ff3b3b, var(--primary)); 
	box-shadow: 0 15px 40px rgba(225,6,0,0.6), 0 0 20px rgba(225,6,0,0.3); 
	transform: translateY(-3px) scale(1.02);
}
.btn-ghost { background: rgba(255,255,255,0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.badges { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badges span { font-size: 12px; color: #fff; border: 1px solid var(--border); background: rgba(255,255,255,0.04); padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 12px rgba(255,255,255,0.12) inset; }

.section { padding: 80px 0; }
.section.alt { background: transparent; border-top: 1px solid var(--border); }
#contact .card.neon::after { background: none; }

h2 { font-family: Oswald, Impact, sans-serif; font-size: clamp(28px, 4.2vw, 42px); margin: 0 0 18px; letter-spacing: .5px; }
h3 { font-family: Oswald, Impact, sans-serif; margin: 12px 0 8px; letter-spacing: .4px; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Special grid for training programs - 5 columns on desktop for uniform layout */
#antrenamente .grid.four {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) { 
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #antrenamente .grid.four {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Optimize hero image for tablet */
  .hero .hero-bg { transform: scale(1.01); }
  .hero .hero-bg-img { transform: scale(1.01); }
}
@media (max-width: 920px) { 
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  #antrenamente .grid.four {
    grid-template-columns: 1fr;
  }
}

.card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.card.neon { position: relative; overflow: hidden; }
.card.neon::after { content: ""; position: absolute; inset: -2px; border-radius: 18px; background: rgba(255,255,255,0.03); pointer-events: none; z-index: -1; }

/* Red border for gym image card */
.card.neon img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* 680x510 ratio - prevents layout shift */
    object-fit: cover;
    border: 2px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
    display: block;
}
.card .card-caption { color: #fff; font-size: 18px; font-weight: 600; margin-top: 12px; text-align: center; }

.cards .card { padding: 20px; }
.cards .meta { color: var(--muted); font-size: 13px; }

.coaches .coach {
    position: relative;
}
.coaches .coach img { 
    width: 150px;
    height: 150px;
    max-width: 100%;
    aspect-ratio: 1 / 1; /* Square for circular crop - prevents layout shift */
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: block;
    margin: 0 auto 15px auto;
    object-position: center;
}
.coaches .coach .btn-gallery {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(15,17,23,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.coaches .coach .btn-gallery:hover {
    opacity: 1;
    background: rgba(15,17,23,0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Videos section */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.videos-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 2rem; 
}
.video-card { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 16px; 
  padding: 0; 
  overflow: hidden; 
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.video-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-card h3 { 
  margin: 16px 16px 8px; 
  font-size: 18px; 
  color: #fff; 
}
.video-card p { 
  margin: 0 16px 16px; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.4; 
}

.pricing .price { text-align: center; }
.pricing .price .price-value { font-size: 22px; font-weight: 800; margin: 8px 0 14px; }
.pricing .price.featured { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); box-shadow: 0 18px 50px rgba(0,0,0,0.3); transform: translateY(-2px); }

.list { margin: 12px 0 0; padding: 0; list-style: none; }
.list li { margin: 8px 0; padding-left: 22px; position: relative; }
.list li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: rgba(255,255,255,0.9); position: absolute; left: 0; top: 7px; box-shadow: 0 0 12px rgba(255,255,255,0.2); }
.list.small li { margin: 6px 0; }

/* Weekly schedule */
.schedule { 
  margin-top: 28px; 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  overflow: hidden; 
  background: linear-gradient(135deg, 
    rgba(225,6,0,0.12) 0%, 
    rgba(225,6,0,0.03) 25%, 
    rgba(255,59,59,0.08) 50%, 
    rgba(225,6,0,0.02) 75%, 
    rgba(255,59,59,0.05) 100%
  ); 
  box-shadow: var(--shadow);
  position: relative;
}
.schedule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(225,6,0,0.15) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255,59,59,0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.schedule .schedule-scroll { position: relative; z-index: 2; }
.schedule .schedule-scroll { overflow-x: auto; }
.schedule table { width: 100%; min-width: 760px; border-collapse: collapse; }
.schedule th, .schedule td { padding: 14px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.schedule th:last-child, .schedule td:last-child { border-right: none; }
.schedule thead th { text-align: left; font-family: Oswald, Impact, sans-serif; font-size: 14px; letter-spacing: .4px; background: rgba(255,255,255,0.03); }
.schedule tbody td .slot { display: inline-block; margin: 6px 0; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; background: rgba(255,255,255,0.04); }
.schedule caption { caption-side: top; text-align: left; padding: 14px 16px; font-weight: 700; color: #fff; }

.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px; color: #fff; font-size: 14px; }
.form input:focus, .form textarea:focus { outline: none; border-color: rgba(0,229,255,0.4); box-shadow: 0 0 0 3px rgba(0,229,255,0.15); }
.form .form-note { min-height: 22px; color: var(--primary-2); font-weight: 600; }
.form .form-note small { color: var(--muted); font-weight: normal; }
/* Slightly lower the submit button in contact form */
#contact .form button { margin-top: 14px; }
/* Auto-resize textarea */
.form textarea {
  resize: none;
  overflow-y: auto;
  min-height: 80px;
  max-height: 200px;
  transition: height 0.2s ease;
}
/* GDPR Consent Checkboxes */
.gdpr-consent, .marketing-consent {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.checkbox-label span {
  flex: 1;
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}
/* Footer Legal */
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-legal-info p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-legal-info strong {
  color: #fff;
}
.footer-legal-info a {
  color: var(--primary);
  text-decoration: none;
}
.footer-legal-info a:hover {
  text-decoration: underline;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-legal-links a:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .footer-legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.contact-info h3 { margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 20px; background: rgba(255,255,255,0.01); }
.site-footer .container { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); gap: 16px; }
.footer-bottom .copyright { color: var(--muted); font-size: 14px; margin: 0; }
.footer-bottom .copyright a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom .copyright a:hover {
  color: #ff3b3b;
  text-decoration: underline;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { 
    height: 45px; 
    width: auto; 
    aspect-ratio: 1 / 1; /* Square aspect ratio - prevents layout shift */
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); 
}
.footer-brand-text h3 { font-family: Oswald, Impact, sans-serif; font-size: 28px; margin: 0 0 8px; letter-spacing: 1px; }
.fight-text { color: #fff; font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.academy-text { color: var(--primary); font-weight: 700; text-shadow: 0 0 15px rgba(225,6,0,0.6), 0 0 30px rgba(225,6,0,0.3); }
.footer-brand-text p { margin: 0; color: var(--muted); font-size: 16px; font-weight: 600; }

.footer-contact h4, .footer-social h4 { font-family: Oswald, Impact, sans-serif; font-size: 18px; margin: 0 0 16px; color: #fff; letter-spacing: 0.5px; }
.footer-contact p { margin: 8px 0; color: var(--muted); font-size: 14px; }
.footer-contact a { color: #fff; text-decoration: none; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--primary); }

.site-footer .to-top { color: #fff; text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; transition: all 0.2s ease; }
.site-footer .to-top:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.social-links { display: flex; gap: 12px; }
.social-link { color: var(--muted); text-decoration: none; padding: 8px; border-radius: 8px; transition: color 0.2s ease, background 0.2s ease; }
.social-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Mobile nav */
@media (max-width: 820px) {
  .nav { position: fixed; right: 16px; top: 64px; background: rgba(15,17,23,0.96); border: 1px solid var(--border); border-radius: 12px; flex-direction: column; padding: 12px; display: none; }
  .nav a { padding: 8px 10px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero .hero-stripe { right: 6vw; width: 28vw; }
  .hero .hero-stripe-img { right: 6vw; width: 28vw; }
  
  /* Optimize hero image for mobile */
  .hero .hero-bg { background-size: cover; background-position: 85% center; transform: scale(1); }
  .hero .hero-bg-img { transform: scale(1); object-position: 85% center; }
  .hero-content { padding: 60px 0 40px; }
  .hero h1 { font-size: clamp(36px, 10vw, 80px); }
  
  /* Logo mobile - smaller text and image */
  .logo { gap: 8px; }
  .logo img { height: 40px; }
  .logo-text { font-size: 18px; }
  
  /* Footer mobile */
  .footer-top { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .logo img { height: 36px; }
  .logo-text { font-size: 16px; }
  .site-header .container { padding: 12px 0; }
  .nav-toggle { padding: 4px 8px; font-size: 12px; }
  .hero-content { padding: 50px 0 30px; }
  .hero h1 { font-size: clamp(32px, 8vw, 72px); }
  .hero p { font-size: 14px; max-width: 100%; }
  .section { padding: 60px 0; }
  .videos-grid { grid-template-columns: 1fr; gap: 16px; }
  
  /* Further optimize hero image for small mobile */
  .hero .hero-bg { background-size: cover; background-position: 90% center; }
  .hero .hero-bg-img { object-position: 90% center; }
  .hero { min-height: 90vh; }
}

/* Video info styles */
.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.video-info p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Featured video section */
.featured-video {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.video-card.featured {
    max-width: 800px;
    width: 100%;
}

.video-card.featured .video-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* Videos CTA section */
.videos-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-large {
    font-size: 1.1rem;
    padding: 16px 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(225, 6, 0, 0.6);
}

/* Videos page specific styles */
.videos-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.3);
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.video-category {
    background: rgba(225, 6, 0, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.video-date {
    color: var(--muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video card visibility classes - optimized for performance */
.video-card.hidden {
    display: none !important;
}

.video-card.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes stripeBlink {
  0% { opacity: 0.35; }
  68% { opacity: 0.35; }
  72% { opacity: 0.95; }
  74% { opacity: 0.35; }
  78% { opacity: 0.95; }
  80% { opacity: 0.35; }
  84% { opacity: 0.95; }
  86% { opacity: 0.35; }
  100% { opacity: 0.35; }
}

/* Motion */
@keyframes floatUp {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero h1, .hero p, .cta-group, .badges { animation: floatUp .6s ease both; }
.hero p { animation-delay: .08s; }
.cta-group { animation-delay: .16s; }
.badges { animation-delay: .24s; }

/* Instagram Posts Styles */
.instagram-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.instagram-post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.instagram-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.instagram-post-media {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Aspect ratio 1:1 pentru postările Instagram */
  overflow: hidden;
  background: #000;
}

.instagram-post-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-post-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: inherit;
}

.instagram-post-link:hover {
  opacity: 0.9;
}

.instagram-video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.instagram-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  transition: all 0.3s ease;
  pointer-events: none;
}

.instagram-post-link:hover .instagram-play-icon {
  background: rgba(225, 6, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.instagram-carousel-indicator {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.instagram-post-info {
  padding: 16px;
}

.instagram-caption {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 8px;
}

.instagram-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.instagram-link:hover {
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
}

.instagram-date {
  color: var(--muted);
  font-size: 12px;
}

/* Responsive pentru postările Instagram */
@media (max-width: 768px) {
  .instagram-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .instagram-post-media {
    padding-bottom: 100%; /* Păstrează aspect ratio 1:1 pe mobile */
  }
}

/* Stiluri pentru postările Instagram în grid-ul videos-grid existent */
.videos-grid .instagram-post-card {
  /* Stilurile sunt deja definite mai sus */
}

.videos-grid .instagram-post-card.hidden {
  display: none !important;
}

.videos-grid .instagram-post-card.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Facebook Posts Styles */
.facebook-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.facebook-post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.facebook-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.facebook-post-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio pentru Facebook */
  overflow: hidden;
  background: #000;
}

.facebook-post-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facebook-post-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: inherit;
}

.facebook-post-link:hover {
  opacity: 0.9;
}

.facebook-no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.facebook-no-image span {
  font-size: 48px;
  margin-bottom: 12px;
}

.facebook-post-info {
  padding: 16px;
}

.facebook-message {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facebook-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 8px;
}

.facebook-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.facebook-link:hover {
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
}

.facebook-date {
  color: var(--muted);
  font-size: 12px;
}

.facebook-engagement {
  display: flex;
  gap: 1rem;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.facebook-likes,
.facebook-comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Social Posts Grid (combinated) */
.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Responsive pentru postările Facebook */
@media (max-width: 768px) {
  .facebook-posts-grid,
  .social-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .facebook-post-media {
    padding-bottom: 56.25%;
  }
}

