/* Project Detail Styles - V2 Design */
/* Extends the main v2 styles.css for project pages */

/* Import main v2 styles */
@import '../styles.css';

/* Project-specific overrides and additions */
:root {
  --project-primary: var(--primary-gradient);
  --project-secondary: var(--secondary-gradient);
  --project-construction: linear-gradient(135deg, #FF6B35, #F7931E);
  --project-ai: linear-gradient(135deg, #ff3b30, #ff9500);
  --project-pixel: linear-gradient(135deg, #ff9500, #ffcc02);
  --project-scan: linear-gradient(135deg, #5856d6, #af52de);
  --project-habit: linear-gradient(135deg, #6366f1, #8b5cf6);
  --project-quit: linear-gradient(135deg, #7c4dff, #b47cff);
  --project-driving: linear-gradient(135deg, #007aff, #00d4aa);
  --project-uk: linear-gradient(135deg, #007aff, #5856d6);
  --project-irish: linear-gradient(135deg, #169B62, #00A86B);
  --project-web: linear-gradient(135deg, #34c759, #00d4aa);
}

/* Navigation overrides for project pages */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.back-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.project-navbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Project Hero Section */
.project-hero {
  padding: 8rem 2rem 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.project-icon-large {
  margin-bottom: 2rem;
}

.icon-circle-large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.icon-circle-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.icon-circle-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

.project-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.4;
}

.app-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-block;
  transition: var(--transition);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Project Overview Section */
.project-overview {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.overview-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.overview-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.overview-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-list li:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Stats Cards */
.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Grotesk', sans-serif;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Screenshots Section */
.screenshots-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.screenshots-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Space Grotesk', sans-serif;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.screenshot-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.phone-mockup {
  width: 150px;
  height: 300px;
  background: #1a1a2e;
  border-radius: 25px;
  margin: 0 auto 1rem;
  padding: 20px 15px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #666;
  border-radius: 2px;
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.screenshot-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tech Stack Section */
.tech-stack {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.tech-stack h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Space Grotesk', sans-serif;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

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

.tech-item:hover::before {
  opacity: 0.05;
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.tech-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.tech-item p {
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

/* Project Highlights Section */
.project-highlights {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.project-highlights h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Space Grotesk', sans-serif;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.highlight-card:hover::before {
  width: 8px;
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.highlight-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.highlight-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer for project pages */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-content a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-content a:hover {
  color: #667eea;
}

/* Privacy Policy Specific Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.privacy-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

.privacy-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.privacy-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.privacy-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.privacy-content ul {
  margin: 1rem 0 1.5rem 2rem;
}

.privacy-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-info {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border-left: 4px solid #667eea;
}

.contact-info h3 {
  margin-top: 0;
  color: #667eea;
}

.effective-date {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .overview-stats {
    position: static;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stat-card {
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .project-hero {
    padding: 6rem 1rem 3rem;
  }
  
  .project-hero h1 {
    font-size: 2rem;
  }
  
  .project-tagline {
    font-size: 1.25rem;
  }
  
  .project-overview,
  .screenshots-section,
  .tech-stack,
  .project-highlights {
    padding: 4rem 1rem;
  }
  
  .overview-text h2,
  .screenshots-section h2,
  .tech-stack h2,
  .project-highlights h2 {
    font-size: 2rem;
  }
  
  .screenshots-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .app-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .overview-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .icon-circle-large {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  
  .project-hero h1 {
    font-size: 1.75rem;
  }
  
  .project-tagline {
    font-size: 1.1rem;
  }
  
  .phone-mockup {
    width: 120px;
    height: 240px;
  }
  
  .screen {
    font-size: 1.2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .back-link {
    font-size: 0.9rem;
  }
  
  .privacy-content {
    padding: 1rem;
  }
}

/* Theme-specific project colors */
.construction { background: var(--project-construction); }
.ai { background: var(--project-ai); }
.pixel { background: var(--project-pixel); }
.scan { background: var(--project-scan); }
.habit { background: var(--project-habit); }
.quit { background: var(--project-quit); }
.driving { background: var(--project-driving); }
.uk { background: var(--project-uk); }
.irish { background: var(--project-irish); }
.web { background: var(--project-web); }
.mot { background: linear-gradient(135deg, #1E88E5, #42A5F5); }

/* Loading animations */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-overview,
.screenshots-section,
.tech-stack,
.project-highlights {
  animation: slideInFromBottom 0.6s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* App Cards Section Styles */
.app-cards-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.app-cards-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.app-cards-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-cards-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.app-cards-section .section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 50px;
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.app-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-title {
  flex: 1;
}

.app-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.app-card-category {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.app-card-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 60px;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.app-card-platforms {
  display: flex;
  gap: 8px;
}

.platform-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-badge.ios {
  background: linear-gradient(135deg, #007aff, #0051d5);
  color: white;
}

.platform-badge.android {
  background: linear-gradient(135deg, #3ddc84, #00c853);
  color: white;
}

.platform-badge.web {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.app-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
}

.app-card-price.free {
  color: #00c853;
}

.app-card-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.app-store-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #000;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.app-store-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-store-link.ios {
  background: linear-gradient(135deg, #000, #333);
}

.app-store-link.android {
  background: linear-gradient(135deg, #00875f, #00c853);
}

.app-store-link.web {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.app-store-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mobile Responsiveness for App Cards */
@media (max-width: 768px) {
  .app-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-cards-section .section-title {
    font-size: 2rem;
  }
  
  .app-cards-section {
    padding: 60px 20px;
    margin-top: 60px;
  }
}