/* 
  [아이보(AIBO)] 디자인 시스템 - Refined Retro Tech
  프로젝트 재건 최종 버전
*/

@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@100..900&display=swap');

:root {
  --primary-color: #007bff;
  --retro-ivory: #fdf6e3;
  --sticker-yellow: #ffd700;
  --sky-blue: #87ceeb;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

body {
  background-color: var(--white);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(135, 206, 235, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(135, 206, 235, 0.4) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--black);
  min-height: 100vh;
}

nav {
  padding: 1rem 0;
  background: var(--retro-ivory);
  border-bottom: 3px solid var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  position: relative;
  left: -8%; 
}

@media (max-width: 600px) {
  .logo { margin-left: 0; transform: none; padding-left: 1.5rem; }
  nav { justify-content: flex-start; }
}

.logo-small {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--black);
  background: var(--sticker-yellow);
  padding: 0.1rem 0.4rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.1rem;
  transform: rotate(-1deg);
}

.logo-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--black);
  text-shadow: 3px 3px 0px var(--sky-blue);
  line-height: 1;
  letter-spacing: -0.05rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.main-card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 8px 8px 0px var(--black);
  margin-bottom: 2rem;
  position: relative;
}

h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.sub-title { color: var(--gray); font-size: 1.1rem; margin-bottom: 2rem; }

.upload-box {
  border: 3px dashed var(--black);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.upload-box:hover, .upload-box.dragover {
  background: #f0f7ff;
  border-color: var(--primary-color);
}

.btn {
  width: 100%;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  border: 3px solid var(--black);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary-color); color: var(--white); box-shadow: 4px 4px 0px var(--black); }

.result-section { display: none; margin-top: 2rem; }

.score-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: var(--black);
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 3rem;
  font-weight: 900;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  margin-bottom: 1rem;
  border: 4px solid #fff;
}

.coverage-item {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 1.2rem;
  border-radius: 15px;
  margin-bottom: 1.2rem;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.gauge-bg {
  width: 100%; height: 20px; background: #eee;
  border: 2px solid var(--black); border-radius: 50px;
  overflow: hidden; margin-top: 0.8rem;
}

.gauge-fill { height: 100%; border-radius: 50px; transition: width 1s ease-in-out; }

.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); display: none;
  justify-content: center; align-items: center; z-index: 1000;
}

.modal-content {
  background: var(--white); border: 4px solid var(--black);
  border-radius: 24px; padding: 2.5rem; max-width: 480px; width: 100%;
  box-shadow: 15px 15px 0px var(--black);
}

.loading-bar-bg {
  width: 100%; height: 20px; background: #eee;
  border: 3px solid var(--black); border-radius: 50px;
  overflow: hidden; margin-top: 1.5rem;
}

.loading-bar-fill { width: 0%; height: 100%; background: var(--primary-color); border-radius: 50px; }

.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; font-weight: 900; margin-bottom: 0.6rem; font-size: 1rem; }
.input-group input, .input-group textarea {
  width: 100%; padding: 1rem; border: 3px solid var(--black);
  border-radius: 12px; font-size: 1.1rem; background: #fff;
}
