/* assets/css/style.css - COMPACT BLINKIT STYLE */
:root {
  --primary-black: #000000;
  --primary-yellow: #ffd24d;
  --bg-light: #f5f5f5;
  --text-gray: #666666;
  --text-light: #999999;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* MODAL STYLES */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-sheet {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-gray);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--bg-light);
}

/* OTP MODAL SPECIFIC */
.otp-sheet {
  padding: 24px;
}

.otp-top {
  text-align: center;
  margin-bottom: 24px;
}

.otp-top h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 8px;
}

.otp-sent {
  font-size: 14px;
  color: var(--text-gray);
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.otp-digit {
  width: 48px;
  height: 56px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.otp-digit:focus {
  border-color: var(--primary-black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resend {
  font-size: 14px;
  color: var(--text-gray);
}

/* NOTIFICATION MODAL */
.modal.small {
  max-width: 320px;
}

.notif-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
}

.modal.small h3 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.modal.small p {
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.btn.primary {
  background: var(--primary-black);
  color: var(--white);
}

.btn.primary:hover {
  background: #333;
}

.btn.ghost {
  background: transparent;
  color: var(--primary-black);
  border: 1px solid #e0e0e0;
}

.btn.ghost:hover {
  background: var(--bg-light);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* A2HS MODAL */
.a2hs-preview {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: -40px auto 16px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.modal-content {
  padding: 0 24px 24px;
}

#a2hsModal h3 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

#a2hsModal p {
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 20px;
}

#a2hsAddBtn, #a2hsContinueBtn {
  padding: 12px;
  font-size: 14px;
}

#a2hsAddBtn {
  background: var(--primary-black);
  color: var(--white);
}

#a2hsContinueBtn {
  background: transparent;
  color: var(--primary-black);
  border: 1px solid #e0e0e0;
}

#a2hsFallback {
  font-size: 13px;
  line-height: 1.5;
}

#a2hsFallback strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-black);
}

#a2hsFallback ol {
  margin-left: 20px;
  margin-bottom: 8px;
}

#a2hsFallback li {
  margin-bottom: 4px;
}

/* RESPONSIVE MODALS */
@media (max-width: 375px) {
  .modal-sheet {
    max-width: 320px;
  }
  
  .otp-sheet {
    padding: 20px;
  }
  
  .otp-digit {
    width: 42px;
    height: 50px;
  }
  
  .modal.small {
    max-width: 280px;
  }
}


/* Modal styles for home page */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal.hidden {
    display: none !important;
}

.modal-sheet {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f5f5f5;
}

.notif-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 16px;
}

.modal.small {
    max-width: 320px;
}

.modal.small h3 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.modal.small p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.btn.primary {
    background: #000;
    color: white;
}

.btn.ghost {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.a2hs-preview {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin: -40px auto 16px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.modal-content {
    text-align: center;
    padding: 0 16px 20px;
}