/* ==========================================
   BOTAN ASLAN - EXIF & AI CLEANER v2.0
   Modern Bento & Glassmorphism Design
   Color Palette: #EEEEEE | #6FCF97 | #2FA084 | #1F6F5F
   ========================================== */

:root {
  --bg-main: #eeeeee;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-card: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(47, 160, 132, 0.18);
  
  --primary: #2fa084;
  --primary-hover: #1f6f5f;
  --primary-light: #e6f6f2;
  --secondary: #6fcf97;
  
  --text-dark: #1a2220;
  --text-muted: #576562;
  --text-light: #8e9e9a;
  
  --shadow-sm: 0 10px 25px rgba(31, 111, 95, 0.06);
  --shadow-md: 0 16px 40px rgba(31, 111, 95, 0.12);
  --shadow-lg: 0 24px 60px rgba(31, 111, 95, 0.18);
  
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

svg {
  max-width: 100%;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

body {
  background: var(--bg-main);
  background-image: radial-gradient(at 10% 10%, rgba(111, 207, 151, 0.18) 0px, transparent 50%),
                    radial-gradient(at 90% 90%, rgba(47, 160, 132, 0.15) 0px, transparent 50%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* Background Ambient Decorative Shapes */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.shape-top {
  top: -120px;
  left: 5%;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.shape-bottom {
  bottom: -100px;
  right: 5%;
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

/* Floating Glass Navbar */
.header-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  z-index: 10;
}

.navbar {
  width: 100%;
  max-width: 920px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px rgba(47, 160, 132, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill {
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 3px rgba(47, 160, 132, 0.2);
}

.status-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-hover);
}

/* Main Layout Wrapper */
.main-content {
  width: 100%;
  max-width: 920px;
  padding: 0 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modern Hero Typography */
.hero {
  text-align: center;
  max-width: 680px;
  margin: 16px 0 32px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Workspace Card */
.workspace-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 36px 28px;
  width: 100%;
  max-width: 540px;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(47, 160, 132, 0.35);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drop-zone:hover, .drop-zone.drag-active {
  border-color: var(--primary);
  background: rgba(230, 246, 242, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(47, 160, 132, 0.1);
}

.icon-pulse-wrapper {
  margin-bottom: 16px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(47, 160, 132, 0.25);
}

.drop-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.drop-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.supported-formats {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Action Buttons */
.btn-action {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(47, 160, 132, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 160, 132, 0.4);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 13px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* State Containers (Processing / Result) */
.state-container {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}

.spinner-box {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: rgba(47, 160, 132, 0.15);
}

.progress-ring-bar {
  stroke: var(--primary);
  stroke-dasharray: 326.72;
  stroke-dashoffset: 326.72;
  transition: stroke-dashoffset 0.3s linear;
  stroke-linecap: round;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
}

.state-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 400px;
}

.linear-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(47, 160, 132, 0.15);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 20px;
}

.linear-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.2s linear;
}

.success-icon-box {
  width: 68px;
  height: 68px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(47, 160, 132, 0.2);
}

.result-actions {
  width: 100%;
  margin-top: 24px;
}

/* Error Banner */
.error-banner {
  background: #fff0f0;
  color: #d63031;
  border: 1px solid #ffcccc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 16px;
  display: none;
  text-align: center;
}

/* Instagram CTA Card */
.social-cta-wrapper {
  width: 100%;
  max-width: 540px;
  margin-bottom: 36px;
}

.btn-instagram-card {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 25px rgba(253, 29, 29, 0.25);
  transition: all 0.3s ease;
}

.btn-instagram-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(253, 29, 29, 0.35);
}

.insta-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insta-sub {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insta-main {
  font-size: 0.98rem;
  font-weight: 800;
}

.insta-arrow {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-instagram-card:hover .insta-arrow {
  transform: translateX(4px);
}

/* Bento Features Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 920px;
  margin-bottom: 40px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-teal {
  background: var(--primary-light);
  color: var(--primary);
}
.icon-mint {
  background: rgba(111, 207, 151, 0.2);
  color: #1a8a62;
}
.icon-forest {
  background: rgba(31, 111, 95, 0.15);
  color: var(--primary-hover);
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Google AdSense Integration Styling */
.ad-container {
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(31, 111, 95, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-container:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE RULES (MOBILE FIRST UX)
   ========================================== */

@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 24px;
  }
  
  .header-container {
    padding: 12px 12px;
  }
  
  .navbar {
    padding: 10px 14px;
    border-radius: 60px;
  }
  
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .brand-logo svg {
    width: 18px;
    height: 18px;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  
  .status-pill {
    padding: 5px 10px;
  }
  .status-text {
    font-size: 0.72rem;
  }

  .hero {
    margin: 10px 0 24px 0;
  }
  .hero-badge {
    padding: 5px 12px;
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 0.92rem;
    padding: 0 4px;
  }

  .workspace-card {
    padding: 24px 16px;
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .drop-zone {
    padding: 24px 14px;
  }
  .icon-circle {
    width: 54px;
    height: 54px;
  }
  .drop-title {
    font-size: 1.05rem;
  }
  .drop-subtitle {
    font-size: 0.82rem;
  }
  .supported-formats {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }

  .btn-action {
    padding: 13px 20px;
    font-size: 0.92rem;
  }
  .btn-secondary {
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .social-cta-wrapper {
    margin-bottom: 24px;
  }
  .btn-instagram-card {
    padding: 14px 16px;
    border-radius: 18px;
    gap: 12px;
  }
  .insta-icon {
    width: 38px;
    height: 38px;
  }
  .insta-main {
    font-size: 0.88rem;
  }
  .insta-arrow {
    display: none; /* Hide arrow on mobile to give text breathing room */
  }

  .bento-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .bento-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
  .bento-card h3 {
    font-size: 0.98rem;
  }
  .bento-card p {
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none; /* Ultra small screens keep header tidy */
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .insta-main {
    font-size: 0.8rem;
  }
}
