/* ============================
   SHOWCASE PAGE SCRATCH THEME
   Public facing portfolio/showcase page
   ============================ */

/* Hero Section */
.showcase-hero {
  background: linear-gradient(135deg, var(--scratch-blue) 0%, var(--scratch-purple) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.showcase-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float-background 20s ease-in-out infinite;
}

@keyframes float-background {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--scratch-space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--scratch-space-xxl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--scratch-space-md);
}

.gradient-text {
  background: linear-gradient(45deg, #FFE066, #FF6680, #66B3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  display: block;
  margin-top: var(--scratch-space-sm);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: var(--scratch-space-xl);
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: var(--scratch-space-xl);
  margin-bottom: var(--scratch-space-xl);
  padding: var(--scratch-space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--scratch-yellow);
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: var(--scratch-space-lg);
  flex-wrap: wrap;
}

.btn-primary, .btn-outline {
  padding: 16px 32px;
  border-radius: var(--scratch-radius-xl);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--scratch-space-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--scratch-orange);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 140, 26, 0.4);
  border: none;
}

.btn-primary:hover {
  background: #E6730D;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 140, 26, 0.6);
  color: white;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
}

.btn-outline small {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: var(--scratch-space-sm);
}

/* Hero Visual - Browser Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-browser {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: var(--scratch-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.browser-header {
  background: #f5f5f5;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27ca3f; }

.browser-url {
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  flex: 1;
}

.browser-content {
  padding: 20px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-blocks {
  display: grid;
  grid-template-columns: repeat(2, 60px);
  gap: 12px;
}

.demo-block {
  width: 60px;
  height: 60px;
  border-radius: var(--scratch-radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.demo-block::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--scratch-space-lg);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--scratch-space-xxl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--scratch-blue);
  margin-bottom: var(--scratch-space-md);
}

html.dark .section-title {
  color: var(--scratch-light-blue-alt);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--scratch-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

html.dark .section-subtitle {
  color: var(--scratch-light-text);
}

/* Featured Projects Section */
.featured-section {
  padding: var(--scratch-space-xxl) 0;
  background: var(--scratch-light-gray);
}

html.dark .featured-section {
  background: var(--scratch-dark-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--scratch-space-xl);
  margin-bottom: var(--scratch-space-xxl);
}

.project-card {
  background: white;
  border-radius: var(--scratch-radius-lg);
  box-shadow: var(--scratch-shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

html.dark .project-card {
  background: var(--scratch-dark-surface);
  border: 1px solid var(--scratch-dark-border);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--scratch-shadow-lg);
}

.project-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--scratch-light-gray);
}

html.dark .project-preview {
  background: var(--scratch-dark-bg);
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Different project styles */
.placeholder-blocks .block-row {
  display: flex;
  gap: 12px;
}

.placeholder-blocks .block {
  height: 24px;
  background: var(--scratch-blue);
  border-radius: 4px;
  flex: 1;
  opacity: 0.7;
}

.placeholder-blocks .block.wide {
  flex: 2;
  background: var(--scratch-purple);
}

.portfolio-style {
  gap: 8px;
}

.portfolio-header {
  height: 30px;
  background: var(--scratch-green);
  border-radius: 4px;
  opacity: 0.7;
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.portfolio-item {
  background: var(--scratch-orange);
  border-radius: 4px;
  opacity: 0.7;
}

.dashboard-style {
  flex-direction: row;
  gap: 12px;
}

.dashboard-sidebar {
  width: 60px;
  background: var(--scratch-purple);
  border-radius: 4px;
  opacity: 0.7;
}

.dashboard-main {
  flex: 1;
}

.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  height: 100%;
}

.widget {
  background: var(--scratch-blue);
  border-radius: 4px;
  opacity: 0.7;
}

.widget.large {
  grid-column: span 2;
  background: var(--scratch-green);
}

.blog-style .blog-header {
  height: 40px;
  background: var(--scratch-red);
  border-radius: 4px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-post {
  display: flex;
  gap: 8px;
  height: 40px;
}

.post-image {
  width: 60px;
  background: var(--scratch-yellow);
  border-radius: 4px;
  opacity: 0.7;
}

.post-content {
  flex: 1;
  background: var(--scratch-blue);
  border-radius: 4px;
  opacity: 0.7;
}

.restaurant-style .restaurant-hero {
  height: 60px;
  background: var(--scratch-orange);
  border-radius: 4px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.restaurant-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-item {
  height: 24px;
  background: var(--scratch-green);
  border-radius: 4px;
  opacity: 0.7;
}

.app-style .app-header {
  height: 40px;
  background: var(--scratch-purple);
  border-radius: 4px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.app-features {
  display: flex;
  gap: 8px;
  flex: 1;
}

.feature-item {
  flex: 1;
  background: var(--scratch-blue);
  border-radius: 4px;
  opacity: 0.7;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.preview-btn {
  background: white;
  color: var(--scratch-blue);
  border: none;
  padding: 12px 24px;
  border-radius: var(--scratch-radius-lg);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.7;
}

.project-info {
  padding: var(--scratch-space-lg);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--scratch-text-primary);
  margin-bottom: var(--scratch-space-sm);
}

html.dark .project-title {
  color: var(--scratch-light-text);
}

.project-description {
  color: var(--scratch-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--scratch-space-md);
}

html.dark .project-description {
  color: var(--scratch-light-text);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-author {
  display: flex;
  align-items: center;
  gap: var(--scratch-space-sm);
  font-size: 0.9rem;
  color: var(--scratch-text-secondary);
}

html.dark .project-author {
  color: var(--scratch-light-text);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--scratch-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.project-stats {
  display: flex;
  gap: var(--scratch-space-md);
  font-size: 0.9rem;
  color: var(--scratch-text-secondary);
}

html.dark .project-stats {
  color: var(--scratch-light-text);
}

.show-more {
  text-align: center;
}

/* Categories Section */
.categories-section {
  padding: var(--scratch-space-xxl) 0;
  background: white;
}

html.dark .categories-section {
  background: var(--scratch-dark-surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--scratch-space-lg);
}

.category-card {
  background: var(--scratch-light-gray);
  padding: var(--scratch-space-xl);
  border-radius: var(--scratch-radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

html.dark .category-card {
  background: var(--scratch-dark-bg);
  border: 1px solid var(--scratch-dark-border);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--scratch-shadow-md);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--scratch-space-md);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--scratch-text-primary);
  margin-bottom: var(--scratch-space-sm);
}

html.dark .category-card h3 {
  color: var(--scratch-light-text);
}

.category-card p {
  color: var(--scratch-text-secondary);
  margin: 0;
}

html.dark .category-card p {
  color: var(--scratch-light-text);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--scratch-purple) 0%, var(--scratch-blue) 100%);
  padding: var(--scratch-space-xxl) 0;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--scratch-space-lg);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: var(--scratch-space-xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--scratch-space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--scratch-space-xl);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .mockup-browser {
    max-width: 300px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--scratch-space-md);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}