/* ==========================================
   Top Banana Apps - Styles
   ========================================== */

/* CSS Variables */
:root {
  --yellow: #FFD700;
  --yellow-light: #FFF3B0;
  --orange: #FF6B6B;
  --teal: #20C997;
  --purple: #845EC2;
  --pink: #FF69B4;
  --text: #2D3436;
  --text-light: #636E72;
  --white: #FFFFFF;
  --cream: #FFFEF5;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ==========================================
   Header & Navigation
   ========================================== */
header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  margin-left: 25px;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  color: var(--purple);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 50%, var(--pink) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.4rem;
  color: var(--white);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

.hero .emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}

/* ==========================================
   Apps Section
   ========================================== */
.apps-section {
  padding: 80px 0;
}

.apps-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text);
}

.apps-section h2 span {
  background: linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* App Card */
.app-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink), var(--purple), var(--teal));
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.app-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.app-card .icon.yellow { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.app-card .icon.teal { background: linear-gradient(135deg, var(--teal), #0CA678); }
.app-card .icon.purple { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.app-card .icon.pink { background: linear-gradient(135deg, var(--pink), var(--orange)); }

.app-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

.app-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge.slack {
  background: #4A154B;
  color: white;
}

.badge.web {
  background: var(--teal);
  color: white;
}

.badge.ios {
  background: var(--text);
  color: white;
}

.badge.android {
  background: #3DDC84;
  color: white;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(132, 94, 194, 0.4);
  color: white;
}

/* Coming Soon Card */
.app-card.coming-soon {
  opacity: 0.7;
  background: linear-gradient(135deg, var(--cream), var(--white));
}

.app-card.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--orange);
  color: white;
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ==========================================
   Footer
   ========================================== */
footer {
  background: var(--text);
  color: white;
  padding: 40px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .copyright {
  opacity: 0.8;
}

footer nav a {
  color: white;
  opacity: 0.8;
  margin-left: 20px;
}

footer nav a:hover {
  opacity: 1;
  color: var(--yellow);
}

/* ==========================================
   Legal Pages (Terms & Privacy)
   ========================================== */
.legal-page {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .last-updated {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--purple);
}

.legal-page p, .legal-page li {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-page ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-content {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .apps-section h2 {
    font-size: 2rem;
  }
  
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav a {
    margin: 0 10px;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  footer nav {
    margin-top: 10px;
  }
  
  footer nav a {
    margin: 0 10px;
  }
  
  .legal-content {
    padding: 30px 20px;
  }
  
  .legal-page h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
