/* outfit-styles.css */
/* EasyStore 穿搭牆系統樣式表 */
/* Version: 4.0.0 */

/* ===== 穿搭牆展示樣式 ===== */
#outfit-wall-display {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fafafa;
  margin: 20px -20px 0 -20px;
  padding: 0;
}

.outfit-wall-header {
  background: white;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #e1e8ed;
}

.outfit-wall-header h1 {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.outfit-wall-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white !important;
}

/* 除錯按鈕樣式 */
.debug-btn {
  background: #17a2b8;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.debug-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.debug-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.outfit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;  /* 原本是 30px 20px，增加左右內距 */
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.outfit-card {
  background: white;
  border-radius: 12px;
  margin-bottom: 0px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

.outfit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.outfit-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.outfit-info {
  padding: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 10px;
}

.user-details h3 {
  font-size: 0.9rem;
  color: #2c3e50;
  margin-bottom: 2px;
}

.user-details p {
  font-size: 0.8rem;
  color: #7f8c8d;
}
.size-info {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.size-tag {
  background: #f8f9fa;
  color: #495057;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.outfit-comment {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.outfit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f3f4;
}

/* 模態框樣式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  max-height: 90vh;
  width: 90%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  height: 100%;
}

.modal-image {
  flex: 1;
  background: #f8f9fa;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-user {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.modal-user .user-avatar {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  margin-right: 15px;
}

.modal-user .user-details h2 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.modal-user .user-details p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.95rem;
}

.modal-stats {
  margin-bottom: 25px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.stat-value {
  color: #2c3e50;
  font-weight: 500;
}

.modal-comment {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #667eea;
}

.modal-comment div {
  color: #2c3e50;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 商品資訊樣式 */
.modal-products {
  margin-bottom: 25px;
  background: #fff9e6;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.modal-products h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f4;
}

.product-item:last-child {
  border-bottom: none;
}

.product-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.product-info {
  flex: 1;
  margin-left: 10px;
  margin-right: 10px;
}

.product-link {
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.product-link:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.product-want-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.product-want-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.product-want-btn:active {
  transform: translateY(0);
}

.product-want-btn.clicked {
  background: #27ae60;
  animation: pulse 0.6s ease-in-out;
}

/* 需求統計樣式 */
.modal-demand {
  margin-bottom: 25px;
  background: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.modal-demand h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.demand-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.demand-count {
  background: #3498db;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.action-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #495057;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  background: #e9ecef;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.action-btn span:first-child {
  font-size: 1.1rem;
}

/* 互動按鈕的已點擊狀態 */
.action-btn.liked {
  background: #e8f5e8 !important;
  border-color: #27ae60 !important;
  color: #27ae60 !important;
}

.action-btn.referenced {
  background: #fff3cd !important;
  border-color: #ffc107 !important;
  color: #856404 !important;
}

.action-btn.purchased {
  background: #e3f2fd !important;
  border-color: #2196f3 !important;
  color: #1565c0 !important;
}

/* Instagram 按鈕樣式 */
.modal-social {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.instagram-btn {
  display: inline-block;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white !important;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(188, 24, 136, 0.3);
  color: white !important;
}

/* 按鈕點擊反饋動畫 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s linear;
}

/* 響應式設計 - 穿搭牆 */
@media (max-width: 1024px) {
  .outfit-grid { 
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .outfit-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .outfit-container {
    padding: 20px 15px;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-image {
    max-height: 50vh;
  }
  
  .modal-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .outfit-grid { 
    grid-template-columns: 1fr;
  }
  
  .outfit-wall-header h1 {
    font-size: 1.8rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
}

/* ===== 投稿表單樣式 ===== */
#outfit-upload-form {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
}

.upload-header {
  text-align: center;
  margin-bottom: 30px;
}

.upload-header h1 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 10px;
}

.upload-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.demo-notice {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.demo-notice h3 {
  color: #1976d2;
  margin-bottom: 5px;
}

.demo-notice p {
  color: #1565c0;
  margin: 0;
}

.login-prompt {
  background: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.login-prompt a {
  color: #856404;
  font-weight: bold;
}
  
.welcome-message {
  background: #d4edda !important;
  color: #155724 !important;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.upload-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.required::after {
  content: " *";
  color: #e74c3c;
}

.optional-badge {
  background: #95a5a6;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.boost-badge {
  background: #f39c12;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-text {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-top: 5px;
}

.image-upload {
  border: 2px dashed #bdc3c7;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.image-upload:hover {
  border-color: #3498db;
  background-color: #f8f9fa;
}

.upload-icon {
  font-size: 3rem;
  color: #bdc3c7;
  margin-bottom: 15px;
}

.upload-text {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 頭像上傳樣式 */
/* 頭像上傳區域包裝 */
.avatar-upload-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* 頭像上傳區域 */
.avatar-upload {
  position: relative;
  width: 150px;
  height: 150px;
  border: 3px dashed #bdc3c7;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8f9fa;
}

.avatar-upload:hover {
  border-color: #3498db;
  background-color: #fff;
  transform: scale(1.05);
}

/* 頭像預覽區域 */
.avatar-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 預設頭像圖示 */
.default-avatar {
  color: #bdc3c7;
  margin-bottom: 10px;
}

.default-avatar svg {
  width: 50px;
  height: 50px;
}

/* 上傳文字 */
.avatar-preview .upload-text {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
  font-weight: 500;
}

/* 當有圖片時隱藏預設內容 */
.avatar-preview.has-image .default-avatar,
.avatar-preview.has-image .upload-text {
  display: none;
}

/* 預覽圖片樣式 */
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 確保自定義頭像在卡片中正確顯示 */
.user-avatar.custom-avatar {
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
}

/* 商品資訊區塊樣式 */
.product-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.basic-product-info {
  margin-bottom: 20px;
}

.basic-product-info h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.product-input-group {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.product-type-selector {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.product-type-selector label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
}

.product-type-selector input[type="radio"] {
  margin-right: 8px;
  width: auto;
}

.product-input-container {
  margin-bottom: 10px;
}

.product-input-container input {
  margin-bottom: 5px;
}

.product-input-container small {
  color: #7f8c8d;
  font-size: 0.8rem;
}

.advanced-product-info {
  border-top: 1px solid #e1e8ed;
  padding-top: 20px;
}

.toggle-advanced-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.toggle-advanced-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.toggle-advanced-btn:active {
  transform: translateY(0);
}

#advancedProductContainer {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.product-detail-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f4;
}

.product-detail-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.product-detail-group h5 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1rem;
}

.benefits-hint {
  text-align: center;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  margin-top: 15px;
}

.benefits-hint small {
  color: #667eea;
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

/* 響應式設計 - 投稿表單 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  #outfit-upload-form {
    padding: 15px;
  }
  
  .upload-container {
    padding: 20px;
  }
  
  .product-type-selector {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== 管理後台樣式 ===== */
.admin-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.8); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 1000;
}

.admin-login-box {
  background: white; 
  padding: 30px; 
  border-radius: 12px; 
  text-align: center; 
  max-width: 400px; 
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-content {
  display: none; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-header {
  background: white; 
  padding: 20px; 
  border-bottom: 2px solid #e1e8ed; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-stats {
  display: flex; 
  gap: 30px; 
  justify-content: center; 
  flex-wrap: wrap;
}

.admin-stat-item {
  text-align: center;
}

.admin-stat-number {
  font-size: 1.5rem; 
  font-weight: bold; 
  color: #3498db;
}

.admin-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 30px 20px;
}

.admin-controls {
  background: white; 
  padding: 20px; 
  border-radius: 12px; 
  margin-bottom: 30px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 20px;
}

.admin-card {
  background: white; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  border-left: 4px solid #f39c12;
  transition: all 0.3s;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.admin-card.approved { 
  border-left-color: #27ae60; 
}

.admin-card.rejected { 
  border-left-color: #e74c3c; 
}

.admin-btn {
  padding: 8px 16px; 
  border: none; 
  border-radius: 6px; 
  font-size: 0.9rem; 
  font-weight: 600; 
  cursor: pointer; 
  margin: 2px;
  transition: all 0.2s;
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-btn-approve { 
  background: #27ae60; 
  color: white; 
}

.admin-btn-approve:hover { 
  background: #229954; 
}

.admin-btn-reject { 
  background: #e74c3c; 
  color: white; 
}

.admin-btn-reject:hover { 
  background: #c0392b; 
}

.admin-btn-secondary { 
  background: #95a5a6; 
  color: white; 
}

.admin-btn-secondary:hover { 
  background: #7f8c8d; 
}

/* 登入相關樣式 */
.login-input {
  width: 100%; 
  padding: 12px; 
  margin-bottom: 15px; 
  border: 2px solid #e1e8ed; 
  border-radius: 6px; 
  font-size: 1rem; 
  box-sizing: border-box; 
  transition: all 0.3s;
}

.login-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-btn {
  width: 100%; 
  padding: 12px; 
  border: none; 
  border-radius: 6px; 
  font-size: 1rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s; 
  margin-bottom: 10px;
}

.login-btn-primary {
  background: #3498db; 
  color: white;
}

.login-btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.login-btn-secondary {
  background: #95a5a6; 
  color: white;
}

.login-btn-secondary:hover {
  background: #7f8c8d;
}

.login-checkbox {
  display: flex; 
  align-items: center; 
  margin-bottom: 15px; 
  font-size: 0.9rem; 
  color: #495057;
}

.login-checkbox input {
  margin-right: 8px; 
  width: auto;
}

.error-message {
  color: #e74c3c; 
  margin-top: 10px; 
  display: none;
  padding: 10px; 
  background: #f8d7da; 
  border-radius: 6px;
  border: 1px solid #f5c6cb;
}

.success-message {
  color: #155724; 
  margin-top: 10px; 
  display: none;
  padding: 10px; 
  background: #d4edda; 
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}

/* 詳細檢視樣式 */
.product-info-section {
  background: #f8f9fa; 
  padding: 15px; 
  margin: 10px 0;
  border-radius: 8px; 
  border-left: 4px solid #667eea;
}

.product-info-section h6 {
  margin: 0 0 10px 0; 
  color: #2c3e50; 
  font-size: 0.9rem;
}

.product-item {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.product-item:last-child { 
  border-bottom: none; 
}

.demand-stats {
  background: #e8f4fd; 
  padding: 15px; 
  margin: 10px 0;
  border-radius: 8px; 
  border-left: 4px solid #3498db;
}

.demand-stats h6 {
  margin: 0 0 10px 0; 
  color: #2c3e50; 
  font-size: 0.9rem;
}

.demand-item {
  display: flex; 
  justify-content: space-between; 
  padding: 5px 0;
}

.demand-count {
  background: #3498db; 
  color: white; 
  padding: 2px 8px;
  border-radius: 12px; 
  font-size: 0.8rem;
}
/* 新增的樣式 - 加入到 outfit-styles.css */

/* ===== 穿搭卡片優化樣式 ===== */
.user-info-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.user-details-compact {
  flex: 1;
}

.user-details-compact h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2;
}

.instagram-handle {
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  color: #7f8c8d;
  font-weight: 400;
}

/* 基本頭像樣式 */
.user-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0; /* 防止被壓縮 */
}

/* 自定義頭像樣式 */
.user-avatar.custom-avatar {
  background: transparent !important;
  font-size: 0 !important;
}

/* 留言預覽樣式 */
.outfit-comment-preview {
  padding: 10px 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  border-top: 1px solid #f0f0f0;
}

/* 商品標誌 */
.product-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ===== 模態框優化樣式 ===== */

/* Instagram 輸入欄位樣式 */
.instagram-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.instagram-prefix {
  position: absolute;
  left: 15px;
  color: #7f8c8d;
  font-weight: 500;
  font-size: 1rem;
  pointer-events: none;
}

.instagram-input-wrapper input {
  padding-left: 35px;
}
/* 模態框 Instagram 顯示樣式 */
.instagram-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.instagram-icon-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.instagram-icon-link:hover {
  transform: scale(1.1);
}

.instagram-icon-link .instagram-icon {
  color: #c13584;
}

.instagram-handle-text {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 400;
}
/* 修復上傳區域的游標樣式 */
#imageUpload,
#avatarUpload {
  cursor: pointer !important;
}

#imageUpload:hover,
#avatarUpload:hover {
  opacity: 0.9;
}
/* 突出留言區域 */
.modal-comment.comment-highlight,
.comment-highlight {
  background: linear-gradient(to right, #f8f9fa 0%, #fff 100%);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
}

/* 突出商品資訊區域 */
.modal-products.products-highlight,
.products-highlight {
  background: #fff;
  padding: 25px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.products-highlight h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 商品項目樣式優化 */
.product-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-item:last-child {
  border-bottom: none;
}

.product-label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 80px;
}

.product-info {
  flex: 1;
  margin: 0 15px;
}

.product-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.product-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.product-want-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.product-want-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
}

.product-want-btn.clicked {
  background: #27ae60;
  color: white;
  border-color: #27ae60;
}

/* 需求統計優化 */
.modal-demand {
  background: #fafbfc;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.modal-demand h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demand-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.demand-count {
  background: #667eea;
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 簡化的尺寸顯示（可選） */
.size-info-simple {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.9rem;
}

.size-info-simple .size-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.size-info-simple .size-label {
  color: #7f8c8d;
}

.size-info-simple .size-value {
  font-weight: 600;
  color: #2c3e50;
}
/* 確保上傳區域內的元素不攔截點擊 */
#imageUpload > *:not(input),
#avatarUpload > *:not(input) {
  pointer-events: none !important;
}

/* 確保 input 元素可以點擊 */
#imageUpload input[type="file"],
#avatarUpload input[type="file"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 999 !important;
}

/* 確保容器本身也可以點擊 */
#imageUpload,
#avatarUpload {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
}

.admin-btn-delete {
  background: #e74c3c !important;
  color: white;
}

.admin-btn-delete:hover {
  background: #c0392b !important;
}
/* outfit-styles.css - 手機端修復版本 */
/* 在原有 CSS 最後加入以下修復代碼 */

/* ===== 手機端穿搭牆修復 ===== */
@media (max-width: 768px) {
  /* 修復穿搭卡片在手機上的顯示 */
  .outfit-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 15px;
  }
  
  /* 確保卡片內容正確顯示 */
  .outfit-card .outfit-info {
    padding: 12px;
    background: white;
  }
  
  /* 修復用戶資訊區塊 */
  .user-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  /* 頭像大小調整 */
  .user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 0.9rem;
  }
  
  /* 留言預覽文字大小 */
  .outfit-comment-preview {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 8px 0;
  }
  
  /* 商品標誌調整 */
  .product-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-top: 8px;
  }
  
  /* 新增：手機端互動按鈕區 */
  .outfit-actions-mobile {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
  }
  
  .action-btn-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .action-btn-mobile:active {
    transform: scale(0.95);
  }
  
  .action-btn-mobile.liked {
    color: #e74c3c;
  }
  
  .action-btn-mobile .count {
    font-weight: 600;
  }
  
  /* 模態框手機優化 */
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-body {
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
  }
  
  .modal-image {
    max-height: 40vh;
    flex-shrink: 0;
  }
  
  .modal-info {
    padding: 20px 15px;
    flex: 1;
    overflow-y: auto;
  }
  
  /* 關閉按鈕更明顯 */
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
  }
  
  /* 模態框內的按鈕組 */
  .modal-actions {
    flex-direction: row;
    gap: 5px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .modal-actions .action-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 0.8rem;
  }
  
  .modal-actions .action-btn span:first-child {
    font-size: 1rem;
  }
  
  /* Instagram 顯示優化 */
  .instagram-display {
    font-size: 0.85rem;
  }
  
  /* 商品資訊區塊優化 */
  .modal-products,
  .modal-demand {
    padding: 15px;
    margin: 15px 0;
  }
  
  .product-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .product-label {
    font-size: 0.85rem;
    min-width: 60px;
  }
  
  .product-info {
    flex: 1;
    font-size: 0.85rem;
  }
  
  .product-want-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* 手機橫向模式優化 */
@media (max-width: 768px) and (orientation: landscape) {
  .modal-body {
    flex-direction: row;
  }
  
  .modal-image {
    max-height: 100%;
    max-width: 40%;
  }
  
  .modal-info {
    flex: 1;
  }
}

/* 超小螢幕設備 (< 480px) */
@media (max-width: 480px) {
  .outfit-wall-header h1 {
    font-size: 1.5rem;
  }
  
  .outfit-wall-header p {
    font-size: 0.95rem;
  }
  
  .upload-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  /* 單欄佈局 */
  .outfit-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 0 10px;
  }
  
  /* 用戶名和身高體重換行顯示 */
  .modal-user .user-details h2 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
}

/* 確保桌面端不顯示手機端按鈕 */
@media (min-width: 769px) {
  .outfit-actions-mobile {
    display: none !important;
  }
}
