/* Disney+ Style Prior Work Stylesheet */
/* Following Disney+ Coco architecture and color palette */

/* Import component styles */
@import "hero_carousel.css";
@import "brand_button_nav.css";

/* CRITICAL: Simple carousel positioning fix - COPIED FROM FLICKS.CSS */
.hero-carousel .carousel-track {
  width: 100% !important;
  display: flex !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hero-carousel .carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  float: none !important;
  position: relative !important;
}

.hero-carousel .carousel-content {
  position: absolute !important;
  bottom: 10% !important;
  left: 5% !important;
  right: 5% !important;
  z-index: 3 !important;
  max-width: 600px !important;
  transform: none !important;
}

.hero-carousel .desktop-hero-style {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.hero-carousel .carousel-slide[style*="width"] {
  width: 100% !important;
}

.hero-carousel .carousel-track[style*="width"] {
  width: 100% !important;
}

@media (min-width: 768px) {
  .hero-carousel .mobile-poster-card {
    display: none !important;
  }
  
  .hero-carousel .desktop-hero-style {
    display: block !important;
  }
  
  .hero-carousel .carousel-content {
    bottom: 15% !important;
    left: 5% !important;
    right: 50% !important;
  }
}

@media (max-width: 767px) {
  .hero-carousel .mobile-poster-card {
    display: block !important;
  }
  
  .hero-carousel .desktop-hero-style {
    display: none !important;
  }
}
/* END CAROUSEL FIXES */

/* CRITICAL: SCOPE ALL SHOW PAGE FIXES TO PRIOR-WORK ONLY */
body.disney-prior-work-page .disney-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1 !important;
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

body.disney-prior-work-page .disney-main-content {
  position: relative;
  z-index: 10 !important;
  min-height: 100vh;
  background: transparent;
}

body.disney-prior-work-page .hero-content-section {
  position: relative;
  z-index: 15 !important;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

body.disney-prior-work-page .content-tabs-section {
  position: relative;
  z-index: 15 !important;
  background: var(--disney-dark);
}

/* CONTENT TABS STYLES - SCOPED TO PRIOR WORK */
body.disney-prior-work-page .content-tabs-section {
  background: var(--disney-dark);
  padding: 2rem 0;
  min-height: 60vh;
}

body.disney-prior-work-page .tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5vw;
}

body.disney-prior-work-page .tabs-navigation {
  margin-bottom: 2rem;
}

body.disney-prior-work-page .tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.disney-prior-work-page .tab-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

body.disney-prior-work-page .tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
}

body.disney-prior-work-page .tab-button--active {
  color: var(--disney-text-primary);
}

body.disney-prior-work-page .tab-button--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--disney-text-primary);
}

body.disney-prior-work-page .tab-content {
  min-height: 400px;
}

body.disney-prior-work-page .tab-panel {
  display: none;
}

body.disney-prior-work-page .tab-panel--suggested {
  display: block;
}

body.disney-prior-work-page .content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

body.disney-prior-work-page .content-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.disney-prior-work-page .content-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.disney-prior-work-page .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

body.disney-prior-work-page .card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* END SCOPED CONTENT TABS STYLES */

:root {
  --disney-dark: #17171B;
  --disney-blue: #1E40AF;
  --disney-gradient: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  --disney-text-primary: #FFFFFF;
  --disney-text-secondary: rgba(255, 255, 255, 0.8);
  --disney-text-muted: rgba(255, 255, 255, 0.6);
  --disney-overlay-dark: rgba(23, 23, 27, 0.8);
  --disney-overlay-gradient: rgba(23, 23, 27, 0.4);
  --basj100: 0px;
}

/* Disney+ Base Styles */
body.disney-prior-work-page {
  background: var(--disney-dark);
  color: var(--disney-text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Z-Index Architecture */
.z-content-high { z-index: 99; }
.z-content-mid { z-index: 49; }

/* Main Content - SCOPED TO PRIOR WORK */
body.disney-prior-work-page .disney-main-content {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hero Content Section - SCOPED TO PRIOR WORK */
body.disney-prior-work-page .hero-content-section {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 3.5vw;
  padding-bottom: 2rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

body.disney-prior-work-page .hero-content-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

body.disney-prior-work-page .hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
  width: 100%;
  overflow: hidden;
}

body.disney-prior-work-page .hero-info-column {
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

/* Patent Title Treatment */
.patent-title-treatment {
  margin-bottom: 2rem;
}

.patent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.patent-badge--primary {
  background: rgba(34, 197, 94, 0.9);
  color: #000;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.patent-badge--secondary {
  background: rgba(59, 130, 246, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.patent-badge--tertiary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Patent Title */
.patent-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  color: var(--disney-text-primary);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Patent Metadata */
.patent-metadata {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.metadata-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  width: 100%;
  overflow: hidden;
}

.metadata-item {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}

.metadata-item strong {
  color: #fff;
  margin-right: 0.25rem;
}

/* Patent Description */
.patent-description {
  margin-bottom: 2.5rem;
}

.description-text {
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Disney+ Action Buttons */
.patent-actions {
  display: flex;
  align-items: center;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.action-btn--primary {
  background-color: #f9f9f9;
  color: #000;
  padding: 0 24px;
  border: none;
}

.action-btn--primary:hover {
  background-color: #ffffff;
  transform: scale(1.02);
}

.action-btn--secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 24px;
  border: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.action-btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.add-to-collection-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}

.add-to-collection-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}

.add-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: color, background-color;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

.add-to-collection-btn:hover .add-btn-circle {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body.disney-prior-work-page .hero-content-section {
    min-height: 60vh;
    padding: 0 5vw;
  }
  
  .patent-title {
    font-size: 1.5rem;
  }
  
  .patent-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .add-to-collection-wrapper {
    margin: 0;
    align-self: center;
  }
}