@import url('../css/style.css'); /* ✅ ขึ้นไป 1 ชั้นจาก app -> src */
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwind.css";
@import "tw-animate.css";

@custom-variant dark (&:is(.dark *));

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
*, *::before, *::after {
   box-sizing: border-box; 
  }
img, svg { 
  display:block; 
}
body {
    font-family: 'Poppins', sans-serif;
  }
.container{
    max-width: 1440px;
    margin: 0 auto;
}


/*  nav  */


.nav-con{
    display: flex;
    padding: 2rem 0; 
/*    border: 1px solid red; */
    align-items: center;
}
.logo img{
    height: 43px;
    width: 108px;
}
.menu{
    display: flex;
    margin-left:2rem ;
    list-style: none;
/*    border: 1px solid red; */
}
.menu li {
  position: relative;
}
.menu li a{ 
    display: inline-block;
    text-decoration: none;
    color: #111111;
    position: relative;
    margin: 0 20px;
}
.menu li a::after{
    content: "";
    position: absolute;
    left: 0;
    right: 5px;
    bottom: -2px;               /* ชิดขอบล่าง */
    width: 0;
    height: 3px;
    background: #484848;     /* สีเส้น */
    transition: width 0.4s ease;
}
.menu li a:hover::after {
  width: 100%;             /* เส้นค่อย ๆ ขยายจากซ้ายไปขวา */
}
.menu-search input{
    font-family: 'Poppins', sans-serif;
    position: relative;
    background-size: 24px 24px;
    background-position-x: 16px;
    width: 500px;
    height: 50px;
    padding-left: 52px;
    border-radius: 25px;
    background-color: #F0F0F0;  
    border: 1px solid #F0F0F0;
    outline: none;
    margin-left: 60px;
    margin-right: 80px;
/*    border: 1px solid red; */
}

.search-btn {
  flex:0 0 32px; 
  width:32px; 
  height:32px;
  display:grid; 
  place-items:center;
  border:0; 
  background:transparent; 
  margin-top: -40.5px;
  margin-left: 73px;
  cursor:pointer;
}
.search-btn img{ 
  width:18px; 
  height:18px; 
  opacity:.65; }

.cart-link{
  padding-right: 32px;
  outline: none;
  text-decoration: none;
}


.hero-banner{
    background-color: #EFF0F2;
}

/*   section Hero-banner */

.style{
    display: flex;
}
#style-hero{
  position: relative;
}


#style-hero .slide-panel,
#style-hero .overlay,
#style-hero::before,
#style-hero::after{
  pointer-events: none; /* สำคัญที่สุด */
}

.hero-cta { 
  position: absolute; 
  z-index: 10; 
  pointer-events: auto;
  justify-content: center;
}
.hero-cta span{
  padding-right: 1150px;
}

.hero-cta button{
  display: inline-block;
  color: #FFFFFF;
  border: 1px solid #111111;
  background-color: #111111;
  padding: 0.5rem 2rem;
  margin-left: 5px;
  justify-content: center;
  margin-top: 70px;
  border-radius: 50px;
  outline: none;
  font-size: 18px;
  cursor: pointer;
  
}

.hero-cta button:hover{
  background-color: #424242;
}

.hero-cta a{
  display: inline-block;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin: 1rem 5px;
  border: 1px solid #111111;
  border-radius: 50px;
  text-decoration: none;
  color: #111111;
}
.hero-cta a:hover{
  background-color: #F6F6F6;
}

.hero-cta span{
  display: flex;
  align-items: center;
  justify-content: center;
}


.style-hero {
  background-size: cover;       /* ให้รูปเต็มกล่องแบบไม่บี้ */
  background-position: center;
  position: relative;
  padding-bottom:  600px;
  padding-left: 110px;
  padding-top: 150px;
}
.style-hero img{
  width: 1440px;
  height: 600px;
}
#hero-text {
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  margin: 0;
  white-space: pre-line;
}
#style h1 {
  font-size: 40px;
}

.controls {
  position: absolute;
  inset: 0;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 0px;
}
.controls button {
    border: 1px solid rgb(0, 0, 0);
    border-radius: 50px;
    padding: 25px 25px;
    inset: 1;
    font-size: 30px;
    z-index: 3;
    cursor: pointer;
}
.controls button:hover{
    background-color: rgb(148, 148, 148);
}
.dots {
  position: absolute; 
  bottom: 12px; 
  left: 50%; 
  transform: translateX(-50%);
  display: flex; 
  gap: 8px;
}
.dots button {
  width: 8px; 
  height: 8px; 
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); 
  cursor: pointer;
}
.dots button.active { background: #000000; }

.auth-menu{
  position:relative;
}
#auth-slot { position: relative; }
.auth-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;border:1px solid #e5e7eb;
  border-radius:9999px;
  background:#fff;
  cursor:pointer;
}
.auth-dd{
  position:absolute;
  right:0;
  z-index: 5;
  top:calc(100% + 20px);
  min-width:160px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  display:none
}
.auth-menu.open .auth-dd{ display:block; }

.auth-item{
   width:100%;
   text-align:left;
   padding:10px 12px;
   border-radius:8px;
  background:none;
  border:0;
  cursor:pointer
}
.auth-item:hover{
  background:#f3f4f6;
}
#style-hero{
  position: relative;
  display: block;           /* กัน inline-block ทำให้กว้างเท่าข้อความ */
  width: 100%;
  height: 620px;            /* หรือ clamp(420px, 60vh, 720px) */
  overflow: hidden;         /* ป้องกันภาพล้น */
}
.btn-ghost{
  text-decoration: none;
  display: inline-block;
  border: 1px solid #424242;
  background-color:  #424242;
  margin-left: 2px;
  padding: 12px 0.5rem;
  border-radius: 50px;
  color: #F0F0F0;
}

/* ข้อความกับปุ่มต้องลอยเหนือภาพ */
#hero-text, #cta{ position: relative; z-index: 3; }

/* how it work */

.how-it-work{
  background-color: #111111;
}


.title-hiw{
  padding-top: 1.5rem;
  color: #F0F0F0;
}
.wireframe-con{
  align-items: center;
  display: grid;
  padding: 1.5rem 0;
  padding-right: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 10rem;
}
.select-con h2{
  padding-bottom: 20px;
}
.vote-con h2{
  padding-bottom: 20px;
}
.monthly-con h2{
  padding-bottom: 20px;
}
.select-con{
  border-right:3px solid #F0F0F0;
  color: #F0F0F0;
}
.vote-con{
  border-right:3px solid #F0F0F0;
  color: #F0F0F0;
}
.monthly-con {
  color: #F0F0F0;
}

/* tops look-thisweek */

.look-week-con{
  display: grid;
  grid-template-columns:  1fr 1fr 1fr 1fr;
  column-gap: 23px;
  align-items: center;
  justify-content: center;
  padding-bottom: 3rem;
}

.toplooks{
  padding: 2rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toplooks a{
  text-decoration: none;
  border: 1px solid #111111;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: #F0F0F0;
  background-color: #111111;
}
.toplooks a:hover{
  background-color: #F0F0F0;
  color: #111111;
}

.imagine-one img{
  width: 400px;
  margin-bottom: 1rem;
  object-fit: cover;
}
.imagine-one {
  width: 250px;
  height: 210px;
  padding-right: 295px;
  overflow: hidden;
  border-radius: 12px;
  display: block;
}
.imagine-one-text {
  display: inline-block;
  padding: 2rem 0;
}
.imagine-one-text p{

  padding: 2rem 0;
}
.imagine-one-text button{
  margin-top: 20px;
  border: 1px solid #111111;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: #111111;
  color: #F0F0F0;
  margin-top: 50px;
  margin-right: 10px;
  cursor: pointer;
}
.imagine-one-text button:active{
  background-color: #F0F0F0;
  color: #111111;
}
.lookvote-1{
  padding: 1rem 1rem;
  margin: 0 0.5rem;
  border: 1px solid #EFF0F2;
  display: inline-block;
  border-radius: 20px;

}
.lookvote-1:hover{
  background-color: #F0F0F0;
}
/* FAQ */
.FAQ{
  background-color: #EFF0F2;
}
.FAQ h3{
  padding: 1rem 1rem;
}
.faq-con{
  padding-left: 1rem;
  padding-bottom: 1.5rem;
}
.faq-con a{
  color: #111111;
  text-decoration: none;
  padding: 0 1rem;
}


/* footer */
.footer-con-tem{
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
}
.footer-con-tem p{
  color: #F0F0F0;
}
.footer{
  background-color: #111111;
}

.footer-con a{
  text-decoration: none;
  padding: 0 1rem;
  color: #F0F0F0;
}

/* upload page 
.h1-upload{
  padding-bottom: 2rem ;
  font-size: 25px;
}

.upload-con{
  display: flex;
  flex-direction: column;
  border: 1px solid #111111;
  padding: 2rem 2rem;
  margin: 5rem 25rem;
  padding-bottom: 4rem;
  border-radius: 2px;
}
.input-upload{
  width: 500px;
  height: 50px;
  margin-left: 45px;
  padding: 150px 150px;
  border-radius: 25px;
  background-color: #F0F0F0;  
  border: 2px dashed rgb(100, 100, 100);
  margin-bottom: 50px;
  align-content: center;
  justify-content: center;
  cursor: pointer;
}

.input-upload:hover{
  background-color: #FFFFFF;
}
*/
/* ปุ่ม Choose File */
/*
input[type="file"]::file-selector-button{
  border: none;             
  background: none;        
  color: #000000;
  cursor: pointer;
}


.input-name{
  padding: 0.5rem 2rem;
  margin-top:  2rem;
  margin-left: 45px;
  border: 1px solid #111111;
  border-radius: 10px;
  outline: none;
}
.button-upload{
  margin-left: 112px;
  background-color: #111111;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  color: #F0F0F0;
  border: none;
  position: absolute; 
  margin-top: 2.2rem;
  margin-bottom: 2rem;
  cursor: pointer;
}
.button-upload:active{
  background-color: #424242;
}
.status-upload{
  color: rgb(100, 100, 100);
  font-weight: bold;
  padding-left: 45px;
  padding-top: 30.5rem;
  position: absolute;
}

*/
:root {
  --background: oklch(0.99 0.005 240);
  --foreground: oklch(0.15 0.01 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0.01 260);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.15 0.01 260);
  --primary: oklch(0.25 0.02 260);
  --primary-foreground: oklch(0.99 0.005 240);
  --secondary: oklch(0.92 0.01 240);
  --secondary-foreground: oklch(0.15 0.01 260);
  --muted: oklch(0.96 0.005 240);
  --muted-foreground: oklch(0.45 0.01 260);
  --accent: oklch(0.2 0.02 260);
  --accent-foreground: oklch(0.99 0.005 240);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0.005 240);
  --border: oklch(0.9 0.005 240);
  --input: oklch(0.9 0.005 240);
  --ring: oklch(0.25 0.02 260);
  --radius: 0.5rem;
}

.dark {
  --background: oklch(0.12 0.01 260);
  --foreground: oklch(0.97 0.005 240);
  --card: oklch(0.15 0.01 260);
  --card-foreground: oklch(0.97 0.005 240);
  --popover: oklch(0.15 0.01 260);
  --popover-foreground: oklch(0.97 0.005 240);
  --primary: oklch(0.85 0.01 240);
  --primary-foreground: oklch(0.12 0.01 260);
  --secondary: oklch(0.2 0.01 260);
  --secondary-foreground: oklch(0.97 0.005 240);
  --muted: oklch(0.2 0.01 260);
  --muted-foreground: oklch(0.6 0.01 260);
  --accent: oklch(0.85 0.01 240);
  --accent-foreground: oklch(0.12 0.01 260);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.97 0.005 240);
  --border: oklch(0.22 0.01 260);
  --input: oklch(0.22 0.01 260);
  --ring: oklch(0.85 0.01 240);
}

@theme inline {
  --font-sans: "Geist", "Geist Fallback";
  --font-mono: "Geist Mono", "Geist Mono Fallback";
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

@layer utilities {
  @keyframes pulse-glow {
    0%,
    100% {
      box-shadow: 0 0 20px rgba(250, 204, 21, 0.3), 0 0 40px rgba(250, 204, 21, 0.1);
    }
    50% {
      box-shadow: 0 0 30px rgba(250, 204, 21, 0.5), 0 0 60px rgba(250, 204, 21, 0.2);
    }
  }

  @keyframes pulse-glow-silver {
    0%,
    100% {
      box-shadow: 0 0 20px rgba(203, 213, 225, 0.3), 0 0 40px rgba(203, 213, 225, 0.1);
    }
    50% {
      box-shadow: 0 0 30px rgba(203, 213, 225, 0.5), 0 0 60px rgba(203, 213, 225, 0.2);
    }
  }

  @keyframes pulse-glow-bronze {
    0%,
    100% {
      box-shadow: 0 0 20px rgba(253, 159, 83, 0.3), 0 0 40px rgba(253, 159, 83, 0.1);
    }
    50% {
      box-shadow: 0 0 30px rgba(253, 159, 83, 0.5), 0 0 60px rgba(253, 159, 83, 0.2);
    }
  }

  @keyframes pulse-slow {
    0%,
    100% {
      opacity: 0.5;
    }
    50% {
      opacity: 0.8;
    }
  }

  .animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
  }

  .animate-pulse-glow-gold {
    animation: pulse-glow 2s ease-in-out infinite;
  }

  .animate-pulse-glow-silver {
    animation: pulse-glow-silver 2s ease-in-out infinite;
  }

  .animate-pulse-glow-bronze {
    animation: pulse-glow-bronze 2s ease-in-out infinite;
  }

  .animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
  }

  .perspective-\[2000px\] {
    perspective: 2000px;
  }
}
/* 🔥 (ไฟล์ต้นฉบับของคุณทั้งหมดอยู่ข้างบน ⬆ ไม่แตะเลย) */



/* --------------------------------------------- */
/*  🔥🔥  RESPONSIVE FIX FOR MOBILE (iPhone)  🔥🔥 */
/*  แก้เฉพาะสิ่งที่ทำให้ UI พังบนมือถือเท่านั้น        */
/*  Desktop UI ไม่ถูกแตะเลย                          */
/* --------------------------------------------- */
@media (max-width: 640px) {

  /* ====== GLOBAL FIX ====== */
  .container,
  .nav-con,
  .content,
  .header {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }


  /* ====== NAVIGATION FIX ====== */
  .nav-con {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem !important;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-left: 0 !important;
  }

  .menu li a {
    margin: 0 !important;
  }


  /* ====== SEARCH BAR ====== */
  .menu-search {
    width: 100%;
    margin: 0 !important;
  }

  .menu-search input {
    width: 100% !important;  
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .search-btn {
    margin-left: 0 !important;
    right: 16px;
    top: 15px;
    position: absolute;
  }


  /* ====== HERO BANNER ====== */
  .style-hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    background-position: center !important;
  }

  .style-hero img {
    width: 100% !important;
    height: auto !important;
  }

  .hero-cta span {
    padding-right: 0 !important;
  }

  .hero-cta button,
  .hero-cta a {
    margin-left: 0 !important;
  }


  /* ====== HOW IT WORK ====== */
  .wireframe-con {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    row-gap: 2rem !important;
  }

  .select-con,
  .vote-con {
    border-right: none !important;
  }


  /* ====== TOP LOOKS GRID ====== */
  .look-week-con {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    row-gap: 1.5rem !important;
  }


  /* ====== UPLOAD PAGE ====== */
  .upload-con {
    margin: 1rem !important;
    padding: 1rem !important;
  }

  .input-upload {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 50px !important;
  }

  .input-name {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .button-upload {
    position: static !important;
    width: 100%;
    margin: 1rem 0 !important;
  }

  .status-upload {
    position: static !important;
    padding: 0 !important;
    margin-top: 1rem !important;
  }
}
.status-upload {
  padding-top: 20px;      /* ดันลงมาจากปุ่ม Submit */
  display: block;
  position: static;      /* กันไม่ให้ทับ input ถ้าเคยตั้ง absolute ไว้ */
  font-size: 14px;
}
/* ซ่อน scrollbar แต่ยัง scroll ได้ */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE, Edge */
  scrollbar-width: none;    /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;            /* Chrome, Safari */
}
/* wrapper ที่ครอบรูปในหน้า /vote */
.vote-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;   /* ให้เป็น portrait 3:4 เหมือน LookCard */
  overflow: hidden;
}

/* รูปจริง */
.vote-card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ครอปแบบเดียวกับ LookCard */
  object-position: center;
}

.main-upload {
  background-color: #020617 !important;  /* สีเดียวกับ bg-[#020617] */
  min-height: 100vh;
}