/**
 * Placeholder Styles for Felipe Román Albores Website
 * These styles create visual placeholders until real images are added
 */

/* ============================================
   Image Placeholders
   ============================================ */

/* Generic image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--background-alt) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
}

.img-placeholder-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Profile picture placeholder */
.profile-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  font-weight: 700;
  margin: 0 auto;
  border: 4px solid var(--background);
  box-shadow: var(--shadow-lg);
}

/* Hero image placeholder */
.hero-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #003366 0%, #0066CC 50%, #00A86B 100%);
  position: relative;
  overflow: hidden;
}

.hero-img-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Service card image placeholder */
.service-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Blog card image placeholder */
.blog-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

/* Testimonial image placeholder */
.testimonial-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Logo placeholder */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Video placeholder */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: var(--spacing-md);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 3px solid white;
  border-radius: 50%;
}

.video-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent white;
}

.video-placeholder-text {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  font-size: 1rem;
  opacity: 0.8;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

body.dark-mode .screenshot-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.screenshot-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-secondary);
  padding: var(--spacing-xl);
  text-align: center;
}

.screenshot-placeholder-icon {
  font-size: 3rem;
  color: var(--secondary-color);
}

/* ============================================
   Enhanced Hero with Overlay
   ============================================ */
.hero-with-image {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  overflow: hidden;
}

.hero-with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 0.85);
  z-index: 1;
}

.hero-with-image .container {
  position: relative;
  z-index: 2;
}

.hero-with-image h1,
.hero-with-image p {
  color: white;
}

/* ============================================
   About Preview with Profile Image
   ============================================ */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
  }
}

.about-preview-image {
  width: 100%;
}

/* ============================================
   Service Cards with Images
   ============================================ */
.service-card-with-image {
  overflow: hidden;
}

.service-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ============================================
   LENDUS Screenshots Gallery
   ============================================ */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.screenshot-caption {
  padding: var(--spacing-md);
  background-color: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
  max-width: 900px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   Utility Classes
   ============================================ */
.has-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 102, 204, 0.8) 100%);
  z-index: 1;
}

.content-over-image {
  position: relative;
  z-index: 2;
}
