/**
 * Users 페이지 스타일
 *
 * 연구실 구성원 전용 페이지 (서비스 버튼, 공지사항 등)
 * - .users-container: 페이지 메인 컨테이너
 * - .services-grid: 서비스 버튼 그리드 영역
 * - .service-card: 개별 서비스 카드
 * - .users-content: 페이지 콘텐츠 영역
 */

/* ==================== Users 컨테이너 ==================== */
.users-container {
  width: var(--content-width);
  max-width: var(--content-max-width);
  margin: 0 auto;
  margin-top: 40px;
}

/* ==================== 서비스 그리드 ==================== */
.services-grid {
  margin-bottom: 50px;

  & .services-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
  }

  & .services-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 auto;
  }
}

/* ==================== 서비스 카드 ==================== */
.service-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 72px;

  &:hover {
    background: #fff;
    border-color: var(--bg-nav-primary);
    transform: scale(1.02);
  }

  & .service-icon {
    font-size: 1.875rem;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
  }

  &:hover .service-icon {
    opacity: 1;
  }

  & .service-info {
    flex: 1;
    min-width: 0;
  }

  & .service-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
  }

  & .service-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
  }

  & .service-arrow {
    font-size: 1rem;
    color: #bbb;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  &:hover .service-arrow {
    color: var(--bg-nav-primary);
    transform: translateX(4px);
  }
}

/* ==================== 페이지 콘텐츠 ==================== */
.users-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;

  & a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;

    &:hover {
      color: #5a6fd8;
      text-decoration: underline;
    }
  }
}

/* ==================== 접근 제한 메시지 ==================== */
.users-access-denied {
  text-align: center;
  padding: 60px 30px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-top: 50px;

  & h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
  }

  & p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  & .login-button,
  & .home-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);

    &:hover {
      background-color: #5a6fd8;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
  }
}


/* ==================== 반응형: 태블릿 (768px 이하) ==================== */
@media (max-width: 768px) {
  .users-container {
    width: 95%;
  }

  .services-grid {
    & .services-title {
      font-size: 1.25rem;
      margin-bottom: 24px;
    }

    & .services-buttons {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
  }

  .service-card {
    padding: 20px 16px;
    min-height: 120px;
  }

  .users-content {
    padding: 24px 20px;
  }

  .users-access-denied {
    & h3 {
      font-size: 26px;
    }

    & p {
      font-size: 14px;
    }

    & .login-button,
    & .home-button {
      font-size: 14px;
    }
  }
}

/* ==================== 반응형: 모바일 (480px 이하) ==================== */
@media (max-width: 480px) {
  .services-grid {
    & .services-title {
      font-size: 1.125rem;
    }

    & .services-buttons {
      gap: 10px;
    }
  }

  .service-card {
    padding: 18px 14px;
    min-height: 110px;

    & .service-icon {
      font-size: 1.75rem;
    }

    & .service-title {
      font-size: 0.9rem;
    }

    & .service-description {
      font-size: 0.8rem;
    }
  }

  .stacked-service-button {
    padding: 14px 10px;

    & .service-icon {
      font-size: 1.375rem;
    }

    & .service-title {
      font-size: 0.85rem;
    }
  }
}
