/* Press Kit Page Styles - Layout Only
   Colors are inherited from profile.css and theme CSS files */

/* Page Container */
.presskit-page {
  min-height: 100vh;
  /* background: var(--profile-bg); */
  font-family: 'Outfit', sans-serif;
  color: var(--profile-text);
}

/* Cover Image Banner */
.presskit-cover {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.presskit-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.presskit-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--profile-bg), transparent);
  pointer-events: none;
}

/* Logo overlay on cover */
.presskit-cover-logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.presskit-cover-logo img {
  max-height: 60%;
  max-width: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* Container */
.presskit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Header */
.presskit-header {
  margin-bottom: 32px;
  padding-top: 40px;
}

.presskit-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--profile-text);
  margin-bottom: 10px;
}

.presskit-developer {
  font-size: 1.2rem;
  color: var(--profile-text-secondary);
}

.presskit-developer a {
  color: var(--profile-primary);
  text-decoration: none;
}

.presskit-developer a:hover {
  text-decoration: underline;
}

/* Main Content Layout */
.presskit-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
}

@media (max-width: 900px) {
  .presskit-content {
    grid-template-columns: 1fr;
  }
  
  .presskit-sidebar {
    order: 2;
  }
  
  .presskit-main {
    order: 1;
  }
}

/* Sidebar / Factsheet */
.presskit-sidebar {
  position: sticky;
  top: 20px;
}

.presskit-factsheet {
  background: var(--profile-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--profile-border);
}

.factsheet-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--profile-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--profile-border);
}

.factsheet-item {
  margin-bottom: 16px;
}

.factsheet-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--profile-text-secondary);
  margin-bottom: 4px;
}

.factsheet-value {
  font-size: 0.95rem;
  color: var(--profile-text);
}

/* Platform badges */
.factsheet-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--profile-text-secondary);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.platform-badge i {
  font-size: 0.85rem;
}

/* Social buttons in sidebar */
.factsheet-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--profile-border);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--profile-card);
  border: 1px solid var(--profile-border);
  color: var(--profile-text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  /* background: var(--profile-primary); */
  border-color: var(--profile-primary);
  color: white;
  transform: translateY(-2px);
}

/* Store buttons */
.factsheet-stores {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--profile-border);
}

.factsheet-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--profile-text);
  margin-bottom: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--profile-card);
  border: 1px solid var(--profile-border);
  color: var(--profile-text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.store-btn:hover {
  background: var(--profile-primary);
  border-color: var(--profile-primary);
  color: white;
  /* transform: translateX(4px); */
}

/* Download button */
.factsheet-download {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--profile-border);
}

.btn-download {
  display: block;
  align-items: center;
  gap: 6px;
  background: var(--profile-card);
  border: 1px solid var(--profile-border);
  color: var(--profile-text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-download:hover,
.btn-download:active{
  background: var(--profile-primary);
  border-color: var(--profile-primary);
  color: white;
  transform: translateY(-2px);
}

/* Main Content Sections */
.presskit-main {
  min-width: 0;
}

.presskit-section {
  background: var(--profile-card);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--profile-border);
  color: var(--profile-text-secondary);
}

.section-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--profile-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--profile-border);
}

/* Pitch section */
.pitch-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--profile-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Description and History */
.description-text,
.history-text,
.team-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--profile-text-secondary);
}

/* WYSIWYG content styles */
.description-text p,
.history-text p,
.team-description p {
  margin-bottom: 1em;
}

.description-text p:last-child,
.history-text p:last-child,
.team-description p:last-child {
  margin-bottom: 0;
}

.description-text strong,
.history-text strong,
.team-description strong {
  font-weight: 700;
  color: var(--profile-text);
}

.description-text em,
.history-text em,
.team-description em {
  font-style: italic;
}

.description-text u,
.history-text u,
.team-description u {
  text-decoration: underline;
}

.description-text a,
.history-text a,
.team-description a {
  color: var(--profile-primary);
  text-decoration: underline;
}

.description-text a:hover,
.history-text a:hover,
.team-description a:hover {
  color: var(--profile-text);
}

.description-text ul,
.description-text ol,
.history-text ul,
.history-text ol,
.team-description ul,
.team-description ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.description-text ol li{
  list-style: inside disc !important
}

.description-text li,
.history-text li,
.team-description li {
  margin-bottom: 0.5em;
}

/* Media Section */
.media-subsection {
  margin-bottom: 32px;
}

.media-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--profile-text);
  margin: 0;
}

/* Trailers */
.trailer-item {
  margin-bottom: 24px;
}

.trailer-item:last-child {
  margin-bottom: 0;
}

.trailer-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--profile-text-secondary);
  margin-bottom: 12px;
}

.responsive-video {
  position: relative;
  width: 100%;
  /* padding-top: 56.25%;  */
  border-radius: 12px;
  overflow: hidden;
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Screenshots Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.screenshot-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Logos Grid */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.logo-item {
  background: var(--profile-card);
  border: 1px solid var(--profile-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
}

.logo-item img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.logo-item a {
  display: block;
}

.logo-variant {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--profile-text-secondary);
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* About Section */
.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-contact .btn-primary {
  background: var(--profile-text);
  background: var(--profile-card);
  border-color: var(--profile-primary);
}

.about-contact .btn-primary:hover {
  background: var(--profile-text);
  border-color: var(--profile-primary);
  color: var(--profile-text-secondary);
}

.about-contact .btn-outline-secondary {
  color: var(--profile-text);
  border-color: var(--profile-border);
  transition: all 0.2s ease;
}

.about-contact .btn-outline-secondary:hover {
  /* background: var(--profile-primary); */
  border-color: var(--profile-primary);
  color: white;
  transform: translateY(-2px);
  background: none;
}

/* Footer Branding */
.presskit-branding-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--profile-text-secondary);
}

.presskit-branding-footer a {
  color: var(--profile-primary);
  text-decoration: none;
}

.presskit-branding-footer a:hover {
  text-decoration: underline;
}

/* Lightbox styles */
.presskit-page .lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.presskit-page .lightbox-overlay.active {
  display: flex;
}

.presskit-page .lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
}

.presskit-page .lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.presskit-page .lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.presskit-page .lightbox-close:hover {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .presskit-cover {
    max-height: 250px;
  }
  
  .presskit-cover img {
    height: 250px;
  }
  
  .presskit-header {
    margin-bottom: 24px;
  }
  
  .presskit-title {
    font-size: 1.8rem;
  }
  
  .presskit-section {
    padding: 20px;
  }
  
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .screenshot-item img {
    height: 120px;
  }
  
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .subsection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Download buttons styling */
.presskit-section .btn-outline-primary {
  color: var(--profile-primary);
  border-color: var(--profile-primary);
}

.presskit-section .btn-outline-primary:hover {
  background: var(--profile-primary);
  color: white;
}