 /* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-color: #fef9f3;
    --secondary-color: #FFFFFF;
    --background-color: #121212;
    --text-color: #371d10;
}

body{
    font-family: 'Montserrat', sans-serif;
    background:var(--primary-color);
    margin:0;
    padding:1rem;
    font-weight: 300;
    }

  h1 {
    color: var(--text-color);
  }

  h2{
    margin:.5rem 8px;
    color: var(--text-color);

    }

  .grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:1rem
    }

  .card{
    cursor:pointer;
    border-radius:.5rem;
    overflow:hidden;
    background:var(--secondary-color);
    box-shadow:0 2px 6px rgba(0,0,0,.15);
    transition:transform .2s
    }

  .card:hover{
    transform:scale(1.05)
    }

  .card:active {
    transform: scale(1);
    box-shadow:0 2px 10px #0cc938;
  }

  .card img{
    width:100%;
    height: 320px;
    object-fit:cover;
    display:block
    }

  .card span{
    display:block;
    text-align:center;
    padding:.5rem;
    font-weight:600;
    color: var(--text-color);
    }

  #result{
    padding:1rem;
    background:var(--secondary-color);
    border-radius:.5rem;
    margin-top:1rem;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    }

  .result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: #7f8c8d;
    font-style: italic;
}

    .answer, #makeupBox, #emailBox {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(135deg, #ececec, #ffffff); 
        color: #020202; 
        border-radius: 20px;  
        max-width: 900px;
        margin: 2rem auto;
        border: 1px solid rgba(255, 255, 255, 0.1); 
        overflow: hidden; 
        padding: 1rem 1.5rem;
    }

   .palette-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .palette-section { grid-template-columns: 1fr; }
}
 
 .palette-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.palette-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}
.swatch {
    aspect-ratio: 1/1;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}

.swatch:hover {
    transform: scale(1.1);
    z-index: 10;
}


  .avoid{
    filter:grayscale(60%) opacity(.6)
    }
    
  .hidden{display:none}

  #makeupBox {
    background: #fdf2f2;
    padding: 1.5rem;
    border-radius: 20px;
    border-left: 5px solid #dd7a83;
    margin-top: 2rem;
    line-height: 1.6;
}

  .palette {
    background-image:linear-gradient(75deg, #e3bfc3, #dd7a83);
    border: none;
    width: 150px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
  }

  .palette:hover {
    background-image:linear-gradient(75deg, #dd7a83, #bf9dcd);
  }

  .palette:active {
    background-image:linear-gradient(75deg, #bf9dcd, #e1b79f);
  }

  /* Email Box */

#emailBox {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

#emailBox h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-color);
}

#emailBox label {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #emailBox label {
    flex-direction: column;
    padding: 15px 0;
    gap: 5px;
  }
}

#emailBox input:focus-within {
    border-color: rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
}



#emailBox input[type="text"],
#emailBox input[type="email"] {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    color: #313131;
    flex-grow: 1; 
    width: 45%;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  #emailBox input[type="text"],
  #emailBox input[type="email"] {
    border: 0.5px solid var(--primary-color);
    border-radius: 5px;
    width: 70%;
  }
}

#emailBox input#userEmail {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  #emailBox input#userEmail {
    border-left:2px solid #13c0e6;
  }
  #emailBox input#userName {
    border-left:2px solid #13c0e6;
  }
}

#emailBox input::placeholder {
    color: #5c5959;
}

#emailBox button {
    border: none;
    outline: none;
    background: linear-gradient(45deg, #007bff, #00d4ff); 
    color: white;
    cursor: pointer;
    padding: 0 20px;
    font-size: 1.2rem;
    border-radius: 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  #emailBox button {
    width: 70%;
    border-radius: 10px;
  }
}

#emailBox button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

#emailBox #emailStatus {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.2em;
    color: #28a745; 
}

.text-choice{
  display:flex;
  gap:1rem;
  justify-content:center;
  margin:2rem 0;
}
.choice-btn{
  padding:1rem 2rem;
  font-size:1.1rem;
  border:2px solid var(--accent);
  background:#fff;
  cursor:pointer;
  transition:.2s;
}
.choice-btn:hover{
  background:var(--accent);
  color:#fff;
}

/* ---------- SEASONAL HEADER ---------- */
.seasonal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seasonal-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.seasonal-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

/* ---------- CONFIRMATION POPUP ---------- */
.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirmation-overlay.show {
  opacity: 1;
}

.confirmation-popup {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.confirmation-overlay.show .confirmation-popup {
  transform: scale(1);
}

.confirmation-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.confirmation-header h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin: 0;
}

.profile-summary {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.profile-label {
  font-weight: 600;
  color: #34495e;
}

.profile-value {
  color: #2c3e50;
  font-weight: 500;
}

.confirmation-prompt {
  text-align: center;
  margin-bottom: 1.5rem;
}

.confirmation-prompt p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

.confirmation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-yes, .btn-no {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-yes {
  background: #27ae60;
  color: white;
}

.btn-yes:hover {
  background: #229954;
  transform: translateY(-2px);
}

.btn-no {
  background: #e74c3c;
  color: white;
}

.btn-no:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* ---------- ENHANCED RESTART BUTTON ---------- */
.restart-analysis {
  margin-top: 2rem;
  text-align: center;
}

.restart-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.restart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  .confirmation-popup {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .seasonal-title {
    font-size: 2rem;
  }
  
  .confirmation-buttons {
    flex-direction: column;
  }
  
  .btn-yes, .btn-no {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- VISUAL CONFIRMATION STYLES ---------- */
.visual-summary {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.visual-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #3498db;
  transition: transform 0.2s ease;
}

.visual-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.visual-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.visual-label {
  font-weight: 600;
  color: #34495e;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visual-value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 1.1rem;
}

.confirmation-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin: 0.5rem 0 1.5rem 0;
  font-size: 1rem;
}

/* ---------- ALTERNATIVE GRID LAYOUT ---------- */
.visual-summary.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.visual-summary.grid-layout .visual-item {
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
}

.visual-summary.grid-layout .visual-image {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

/* ---------- RESPONSIVE VISUALS ---------- */
@media (max-width: 768px) {
  .visual-item {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .visual-image {
    width: 70px;
    height: 70px;
  }
  
  .visual-summary {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .visual-image {
    width: 60px;
    height: 60px;
  }
  
  .visual-value {
    font-size: 1rem;
  }
}

/* Add CSS for image placeholder */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ecf0f1;
  color: #95a5a6;
  font-size: 0.8rem;
}

.image-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

/* ---------- OUTFIT CHECKER STYLES ---------- */
.outfit-checker-section {
    text-align: center;
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.outfit-checker-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.outfit-checker-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.outfit-step {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in;
}

.outfit-step h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.number-selector {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.number-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.number-btn {
    width: 60px;
    height: 60px;
    border: 3px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.number-btn.selected {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.color-pickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.color-picker-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.color-picker-item label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.color-picker {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.color-input-group {
    background: #fdfdfd;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.color-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

input[type="color"] {
    border: none;
    width: 200px;
    height: 100px;
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 4px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.analyze-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    margin-top: 1rem;
}

.analyze-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.outfit-score-container {
    text-align: center;
    padding: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#27ae60 0deg, #f39c12 180deg, #e74c3c 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
}

.score-circle span {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.score-excellent { background: conic-gradient(#27ae60 0deg 360deg); }
.score-good { background: conic-gradient(#f39c12 0deg 360deg); }
.score-fair { background: conic-gradient(#e67e22 0deg 360deg); }
.score-poor { background: conic-gradient(#e74c3c 0deg 360deg); }

.outfit-breakdown {
    text-align: left;
    margin: 2rem auto;
    max-width: 500px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.breakdown-status {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.status-best { background: #d5f4e6; color: #27ae60; }
.status-avoid { background: #ffeaa7; color: #d63031; }
.status-clash { background: #fab1a0; color: #e17055; }

@media (max-width: 768px) {
    .color-pickers-grid {
        grid-template-columns: 1fr;
    }
    
    .number-buttons {
        gap: 0.5rem;
    }
    
    .number-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}